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

Disassembly:
push 0xffffffffffffffff
push 0x57fbb8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov eax, dword [0x60bd28]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x168], 1
mov eax, dword [esp + 0x60]
mov ecx, dword [eax]
mov edx, dword [eax + 8]
mov dword [esp + 0x3c], ecx
mov ecx, dword [eax + 4]
mov dword [esp + 0x44], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x48], edx
jne 0x46bef7
mov ebx, dword [esi + 0x258]
cmp dword [esi + 0x254], ebx
lea edi, [esi + 0x250]
jbe 0x46be6e
call fcn.005416ed
mov ebp, dword [edi + 4]
cmp ebp, dword [edi + 8]
jbe 0x46be7b
call fcn.005416ed
push ebx
push edi
push ebp
push edi
lea eax, [esp + 0x34]
push eax
mov ecx, edi
call fcn.00463330
mov ebx, dword [esi + 0x238]
cmp dword [esi + 0x234], ebx
lea edi, [esi + 0x230]
jbe 0x46bea4
call fcn.005416ed
mov ebp, dword [edi + 4]
cmp ebp, dword [edi + 8]
jbe 0x46beb1
call fcn.005416ed
push ebx
push edi
push ebp
push edi
lea ecx, [esp + 0x34]
push ecx
mov ecx, edi
call fcn.0045a220
mov ebx, dword [esi + 0x268]
cmp dword [esi + 0x264], ebx
lea edi, [esi + 0x260]
jbe 0x46beda
call fcn.005416ed
mov ebp, dword [edi + 4]
cmp ebp, dword [edi + 8]
jbe 0x46bee7
call fcn.005416ed
push ebx
push edi
push ebp
push edi
lea edx, [esp + 0x34]
push edx
mov ecx, edi
call fcn.0045a2b0
or eax, 0xffffffff
xor edi, edi
lea ebp, [esi + 0x240]
mov dword [esi + 0x174], edi
mov dword [esi + 0x18], eax
mov dword [esi + 0x178], eax
mov dword [esi + 0x180], eax
mov dword [esi + 0x184], eax
mov ebx, dword [ebp + 8]
cmp dword [ebp + 4], ebx
jbe 0x46bf2a
call fcn.005416ed
mov eax, dword [ebp + 4]
cmp eax, dword [ebp + 8]
mov dword [esp + 0x60], eax
jbe 0x46bf3f
call fcn.005416ed
mov eax, dword [esp + 0x60]
push ebx
push ebp
push eax
push ebp
lea eax, [esp + 0x34]
push eax
mov ecx, ebp
call fcn.004632b0
xor ebx, ebx
mov dword [esp + 0x14], ebx
call fcn.00512f10
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x46bf6f
push 0x80004005
call fcn.00401010
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x60], eax
lea ebp, [esi + 0x40]
push ebp
mov ecx, esi
mov dword [esp + 0x58], edi
call fcn.0045bb70
push ebp
push str.body
mov ecx, esi
call fcn.00464920
mov ecx, dword [esi + 0x44]
mov edx, dword [esi + 0x48]
mov al, byte [esi + 0x4c]
lea ebp, [esi + 0x1e4]
mov dword [ebp], ecx
mov cl, byte [esi + 0x54]
mov dword [esi + 0x1f4], edx
mov dl, byte [esi + 0x50]
mov byte [esi + 0x1fa], cl
mov ecx, dword [esi + 0x5c]
mov byte [esi + 0x1f9], dl
mov dword [esi + 0x1e8], edi
mov dword [esi + 0x1f0], edi
mov dword [esi + 0x1ec], edi
mov byte [esi + 0x1f8], al
mov byte [esi + 0x1fb], 1
mov byte [esi + 0x1fc], 0
mov byte [esi + 0x1fd], 0
mov byte [esi + 0x1fe], 0
mov byte [esi + 0x1ff], 0
lea edx, [esi + 0x200]
lea esp, [esp]
mov al, byte [ecx]
mov byte [edx], al
add ecx, 1
add edx, 1
test al, al
jne 0x46c010
push ebp
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push eax
mov dword [esi + 0x220], eax
mov eax, dword [esi + 0x160]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esi + 0x78]
mov edx, dword [esi + 0x160]
push ecx
push edx
mov dword [esi + 0x138], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov ecx, dword [esi + 0x160]
mov dword [esi + 0x13c], eax
mov eax, dword [esi + 0x60]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov edx, dword [esi + 0x64]
mov dword [esi + 0x140], eax
mov eax, dword [esi + 0x160]
push edx
push eax
call dword [sym.imp.GDI32.dll_SetBkColor]
mov edx, dword [esi + 0x160]
lea ecx, [esi + 0x1ac]
push ecx
push edx
mov dword [esi + 0x144], eax
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
mov eax, dword [esi + 0x164]
cmp dword [eax - 0xc], edi
lea ebp, [esi + 0x164]
jle 0x46c264
lea ecx, [ecx]
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push str.table
mov edi, ebx
call fcn.00402a30
lea ecx, [esp + 0x18]
push ecx
push ebp
mov ecx, esi
call fcn.0045ad70
mov ebx, dword [esp + 0x14]
mov edx, ebx
sub edx, edi
push edx
mov dword [esp + 0x24], eax
push edi
lea eax, [esp + 0x24]
push eax
mov ecx, ebp
call fcn.00420700
mov ecx, dword [eax]
mov edi, dword [esp + 0x60]
lea eax, [ecx - 0x10]
add edi, 0xfffffff0
cmp eax, edi
mov byte [esp + 0x54], 1
je 0x46c14c
cmp dword [edi + 0xc], 0
jl 0x46c13e
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x46c13e
push eax
call fcn.00401b70
mov dword [esp + 0x1c], eax
add esp, 4
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46c131
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov ecx, dword [esp + 0x18]
add ecx, 0x10
mov dword [esp + 0x60], ecx
jmp 0x46c14c
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x68]
call fcn.00402290
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x54], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46c171
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x60]
cmp dword [ecx - 0xc], 0
je 0x46c1b4
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x34]
push ecx
mov ecx, esi
call fcn.00466b20
mov ecx, dword [eax]
mov edi, dword [eax + 4]
mov eax, dword [esp + 0x5c]
mov edx, dword [eax]
cmp edx, ecx
jle 0x46c1a2
mov ecx, edx
add dword [eax + 4], edi
mov dword [eax], ecx
cmp dword [esi + 0x168], 0
jne 0x46c1b4
add dword [esp + 0x40], edi
cmp dword [esp + 0x20], 0
je 0x46c258
lea edx, [esp + 0x14]
push edx
mov edi, ebx
add ebx, 6
push ebp
mov ecx, esi
mov dword [esp + 0x1c], ebx
call fcn.0045fa20
mov ebx, dword [esp + 0x14]
mov eax, ebx
sub eax, edi
push eax
push edi
lea ecx, [esp + 0x2c]
push ecx
mov ecx, ebp
call fcn.00420700
push eax
lea ecx, [esp + 0x64]
mov byte [esp + 0x58], 2
call fcn.004025f0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x54], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46c21f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x64]
push edx
lea eax, [esp + 0x3c]
push eax
mov ecx, esi
call fcn.0046ac20
mov ecx, dword [esp + 0x5c]
mov edx, dword [eax]
mov edi, dword [ecx]
cmp edi, edx
mov eax, dword [eax + 4]
jle 0x46c246
mov edx, edi
add dword [ecx + 4], eax
mov dword [ecx], edx
cmp dword [esi + 0x168], 0
jne 0x46c258
add dword [esp + 0x40], eax
mov ecx, dword [ebp]
cmp ebx, dword [ecx - 0xc]
jl 0x46c0b0
mov edx, dword [esi + 0x13c]
mov eax, dword [esi + 0x160]
push edx
push eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov ecx, dword [esi + 0x144]
mov edx, dword [esi + 0x160]
push ecx
push edx
call dword [sym.imp.GDI32.dll_SetBkColor]
mov eax, dword [esi + 0x140]
mov ecx, dword [esi + 0x160]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov edx, dword [esi + 0x138]
mov eax, dword [esi + 0x160]
push edx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ebp, dword [esi + 0x248]
cmp dword [esi + 0x244], ebp
lea ebx, [esi + 0x240]
jbe 0x46c2cd
call fcn.005416ed
mov edi, dword [ebx + 4]
cmp edi, dword [ebx + 8]
jbe 0x46c2da
call fcn.005416ed
push ebp
push ebx
push edi
push ebx
lea ecx, [esp + 0x44]
push ecx
mov ecx, ebx
call fcn.004632b0
mov edx, dword [esi + 0x220]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x60]
add eax, 0xfffffff0
mov dword [esp + 0x54], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46c31f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 8