Function at 0x10046340
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x10159703
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x101ad3b4]
xor eax, esp
mov dword [esp + 0xcc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101ad3b4]
xor eax, esp
push eax
lea eax, [esp + 0xe4]
mov dword fs:[0], eax
mov eax, dword [esp + 0xf4]
mov ecx, dword [esp + 0xfc]
mov ebx, dword [esp + 0x100]
lea edx, [esp + 0x50]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
mov eax, edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], eax
mov dword [esp + 0xec], 1
mov ecx, dword [esp + 0x60]
mov byte [ecx], 0
mov dword [esp + 0xec], 2
push 0x3c
lea edx, [esp + 0xa8]
push 0
push edx
call fcn.100f6b80
mov edi, dword [sym.imp.USER32.dll_GetDesktopWindow]
add esp, 0xc
mov byte [esp + 0xbb], 1
mov byte [esp + 0xc0], 0
mov byte [esp + 0xbf], 0
call edi
push eax
call dword [sym.imp.USER32.dll_GetWindowDC]
push 0
lea ecx, [esp + 0x34]
push ecx
push 0x1003f5b0
lea edx, [esp + 0xb0]
mov esi, eax
push edx
lea eax, [esp + 0x78]
push esi
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], eax
call dword [sym.imp.GDI32.dll_EnumFontFamiliesExA]
push esi
mov ebp, eax
call edi
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp ebp, 1
jne 0x100464ce
mov ecx, dword [esp + 0xf8]
mov al, 0xd6
mov byte [esp + 0x3c], al
mov byte [esp + 0x43], al
push ebx
lea eax, [esp + 0x3c]
push eax
push ecx
mov byte [esp + 0x44], 0xcf
mov byte [esp + 0x45], 0xb5
mov byte [esp + 0x46], 0xcd
mov byte [esp + 0x47], 0xb3
mov byte [esp + 0x49], 0xd0
mov byte [esp + 0x4a], 0xce
mov byte [esp + 0x4b], 0xde
mov byte [esp + 0x4c], 0xb4
mov byte [esp + 0x4d], 0xcb
mov byte [esp + 0x4e], 0xd7
mov byte [esp + 0x50], 0xcc
mov byte [esp + 0x51], 0xe5
mov byte [esp + 0x52], 0x5b
mov byte [esp + 0x53], 0x25
mov byte [esp + 0x54], 0x73
mov byte [esp + 0x55], 0x5d
mov byte [esp + 0x56], 0
call fcn.1003bf90
mov esi, dword [esp + 0x28]
add esp, 0xc
lea edx, [esp + 0x50]
push edx
mov ecx, esi
call fcn.10009b80
jmp 0x100466f5
call edi
push eax
call dword [sym.imp.USER32.dll_GetWindowDC]
push 0x48
mov ebx, eax
push 0x5a
push ebx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
mov eax, dword [esp + 0x10c]
push eax
call dword [sym.imp.KERNEL32.DLL_MulDiv]
mov esi, eax
push ebx
neg esi
call edi
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov al, byte [esp + 0x108]
mov cl, al
and cl, 1
neg cl
mov dword [esp + 0x68], esi
sbb ecx, ecx
and ecx, 0x12c
add ecx, 0x190
test al, 2
mov dword [esp + 0x78], ecx
je 0x1004652e
mov byte [esp + 0x7c], 1
test al, 4
je 0x10046537
mov byte [esp + 0x7d], 1
test al, 8
je 0x10046540
mov byte [esp + 0x7e], 1
lea edx, [esp + 0x68]
push edx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x28], ebp
je 0x100466e5
test esi, esi
jge 0x1004655f
neg esi
push 0
lea edi, [esi + esi]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push edi
mov esi, eax
push edi
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push esi
mov dword [esp + 0x2c], eax
call ebx
push ebp
push esi
mov dword [esp + 0x28], eax
call ebx
push 0
push esi
mov dword [esp + 0x34], eax
call dword [sym.imp.GDI32.dll_SetTextColor]
mov eax, dword [esp + 0x14]
lea ecx, [eax + 1]
nop
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x100465a0
sub eax, ecx
mov ebx, eax
lea eax, [ebx + ebx + 2]
push eax
call fcn.100f5b7c
mov ebp, eax
lea eax, [ebx + ebx + 2]
push eax
push 0
push ebp
call fcn.100f6b80
mov ecx, dword [esp + 0x24]
add esp, 0x10
add ebx, 1
push ebx
push ebp
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100465e4
sub eax, edx
sar eax, 1
mov dword [esp + 0x14], eax
mov ebx, 0
je 0x100466ab
jmp 0x10046610
movzx eax, word [ebp + ebx*2]
cmp ax, 0x24
je 0x1004669e
cmp ax, 0x7c
je 0x1004669e
mov ecx, dword [esp + 0x20]
push edi
push edi
push eax
lea edx, [esp + 0x44]
push edx
mov edx, esi
call fcn.100450d0
add esp, 0x10
mov byte [esp + 0xec], 3
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
mov edx, eax
sub edx, ecx
je 0x1004668d
mov edx, dword [esp + 0x60]
sub edx, dword [esp + 0x64]
je 0x10046682
push 0x101615a8
lea ecx, [esp + 0x54]
call fcn.10009d60
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
push eax
push ecx
lea ecx, [esp + 0x58]
call fcn.10009bf0
jmp 0x1004668d
push eax
push ecx
lea ecx, [esp + 0x58]
call fcn.1000c6a0
mov byte [esp + 0xec], 2
lea ecx, [esp + 0x38]
call fcn.10006310
add ebx, 1
cmp ebx, dword [esp + 0x14]
jb 0x10046610
push ebp
call fcn.100f5c3f
mov edx, dword [esp + 0x30]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
add esp, 4
push edx
push esi
call edi
mov eax, dword [esp + 0x20]
push eax
push esi
call edi
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [esp + 0x24]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
push ecx
call esi
mov edx, dword [esp + 0x28]
push edx
call esi
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x50]
push eax
mov ecx, esi
call fcn.10009b80
mov dword [esp + 0x18], 1
mov byte [esp + 0xec], 0
lea ecx, [esp + 0x50]
call fcn.10006310
mov eax, esi
mov ecx, dword [esp + 0xe4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xcc]
xor ecx, esp
call fcn.100f611a
add esp, 0xdc
ret