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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x493c68
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x6c]
mov ebx, ecx
mov eax, dword [ebx + 0x130]
push edi
xor edi, edi
cmp eax, edi
jne 0x4581f5
mov ecx, dword [ebx + 0x138]
mov edx, dword [ebx + 0x13c]
mov eax, dword [ebx + 0x134]
push 1
push ecx
push edi
push edx
push eax
push esi
call fcn.00434c50
add esp, 0x18
mov dword [ebx + 0x130], eax
mov eax, dword [ebx + 0x130]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push 1
push esi
mov dword [esp + 0x24], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov ecx, dword [ebx + 0x140]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov eax, dword [ebx + 0x114]
mov edx, dword [eax]
cmp edx, eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
lea ecx, [ebx + 0x4c]
mov edi, ecx
mov ecx, dword [edi]
mov dword [esp + 0x3c], ecx
mov ecx, dword [edi + 4]
mov ebp, dword [edi + 8]
mov edi, dword [edi + 0xc]
mov dword [esp + 0x10], edx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], edi
jne 0x458290
sub ecx, dword [ebx + 0x50]
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x5c]
mov dword [eax + 4], edi
pop edi
pop esi
pop ebp
mov dword [eax], edx
pop ebx
mov dword fs:[0], ecx
add esp, 0x58
ret 0x10
mov edx, dword [esp + 0x10]
lea ecx, [ecx]
mov edx, dword [edx + 8]
mov esi, dword [edx + 0xc]
mov ecx, dword [esi - 0x10]
sub esi, 0x10
mov dword [esp + 0x14], edx
mov edx, dword [ecx]
call dword [edx + 0x10]
mov edx, dword [esi + 0xc]
test edx, edx
lea ecx, [esi + 0xc]
jl 0x4582c0
cmp eax, dword [esi]
jne 0x4582c0
mov eax, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x4582f4
mov ecx, dword [esi + 4]
mov edx, dword [eax]
push 2
push ecx
mov ecx, eax
call dword [edx]
test eax, eax
je 0x4584d0
mov edx, dword [esi + 4]
mov dword [eax + 4], edx
mov ecx, dword [esi + 4]
inc ecx
add ecx, ecx
mov edx, ecx
shr ecx, 2
add esi, 0x10
lea edi, [eax + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ebp, [eax + 0x10]
mov dword [esp + 0x20], ebp
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x44]
mov dword [esp + 0x30], ecx
mov ecx, dword [ebx + 0x11c]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x34], edx
or ecx, 0x400
push ecx
mov dword [esp + 0x3c], eax
mov eax, dword [ebp - 0xc]
lea edx, [esp + 0x30]
push edx
push eax
mov eax, dword [esp + 0x7c]
push ebp
push eax
mov dword [esp + 0x78], 0
call dword [0x4b54d0]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x2c]
mov esi, dword [esp + 0x24]
mov dword [esp + 0x18], eax
mov eax, ecx
sub eax, edx
cmp esi, eax
jge 0x458361
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x14]
mov esi, dword [eax + 8]
cmp esi, 0xffffffff
je 0x45844e
mov edi, dword [ebx + 0x68]
test edi, edi
jne 0x45837c
xor eax, eax
jmp 0x458384
mov eax, dword [ebx + 0x6c]
sub eax, edi
sar eax, 2
cmp esi, eax
jg 0x45844e
mov eax, dword [esp + 0x30]
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x50], eax
mov eax, dword [ebx + 0x68]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x4c], edx
mov eax, dword [eax + esi*4]
add eax, 0x38
mov ecx, eax
mov esi, dword [ecx]
mov edi, dword [ecx + 4]
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
sub eax, esi
xor esi, esi
sub eax, esi
sub ecx, edi
mov esi, eax
push 0
xor edi, edi
push esi
lea eax, [esp + 0x34]
sub ecx, edi
add edx, esi
push eax
mov edi, ecx
mov dword [esp + 0x60], edx
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [esp + 0x34]
sub ecx, dword [esp + 0x2c]
lea eax, [ecx + esi]
cmp dword [esp + 0x24], eax
jge 0x4583f3
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x18]
cmp ecx, edi
jge 0x45841c
mov esi, dword [esp + 0x40]
mov edx, edi
sub edx, ecx
mov eax, edi
sub eax, ecx
mov ecx, dword [esp + 0x30]
add esi, edx
cdq
sub eax, edx
sar eax, 1
add ecx, eax
mov dword [esp + 0x40], esi
mov dword [esp + 0x30], ecx
mov eax, dword [esp + 0x50]
add eax, edi
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x78]
test eax, eax
jne 0x45844e
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 8]
mov ecx, dword [ebx + 0x68]
mov ecx, dword [ecx + eax*4]
mov edx, dword [ecx]
push 0
push 0
lea eax, [esp + 0x54]
push eax
mov eax, dword [esp + 0x7c]
push eax
call dword [edx + 0x50]
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x78]
add ecx, esi
test eax, eax
mov dword [esp + 0x38], ecx
jne 0x458480
mov edx, dword [ebx + 0x11c]
mov eax, dword [ebp - 0xc]
push edx
mov edx, dword [esp + 0x74]
lea ecx, [esp + 0x30]
push ecx
push eax
push ebp
push edx
call dword [0x4b54d0]
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x10]
add ecx, esi
mov esi, dword [eax]
add ebp, 0xfffffff0
mov dword [esp + 0x40], ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0x64], 0xffffffff
lea ecx, [ebp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4584b7
mov ecx, dword [ebp]
mov eax, dword [ecx]
push ebp
call dword [eax + 4]
cmp esi, dword [ebx + 0x114]
jne 0x458289
mov ecx, dword [esp + 0x40]
mov esi, dword [esp + 0x70]
jmp 0x458256
call fcn.00403150
int3