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

Disassembly:
push 0xffffffffffffffff
push 0x524e00
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebp
push edi
mov edi, ecx
mov dword [esp + 8], edi
call fcn.00457540
mov eax, dword [edi + 0x70]
mov ecx, dword [eax + 0xc0]
xor ebp, ebp
cmp ecx, ebp
je 0x459d47
push esi
mov esi, dword [esp + 0x7c]
cmp esi, ebp
je 0x459d46
mov eax, dword [esi + 0x1c]
cmp eax, ebp
je 0x459d46
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, dword [esp + 0x80]
mov dword [edi + 0x40], ecx
mov dword [edi + 0x3c], esi
mov dword [edi + 0x44], ebp
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x1a4]
cmp dword [edi + 0x30], ebp
jne 0x45959d
pop esi
mov dword [edi + 0x3c], ebp
pop edi
pop ebp
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
add esp, 0x6c
ret 8
push ebx
mov ebx, dword [edi + 0x4c]
cmp ebx, ebp
jne 0x4595bc
cmp dword [0x5823bc], ebp
jne 0x4595b6
push ebp
call fcn.004484b0
add esp, 4
mov ebx, dword [0x5823bc]
push esi
lea ecx, [esp + 0x60]
mov dword [esp + 0x2c], ebx
call fcn.00505af6
add ebx, 0xb4
push ebx
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x54]
mov dword [esp + 0x80], ebp
call fcn.004675a0
mov eax, dword [edi + 0x30]
dec eax
cmp eax, ebp
mov byte [esp + 0x78], 1
mov dword [esp + 0x84], eax
jl 0x45970c
inc eax
mov dword [esp + 0x18], eax
jmp 0x459610
mov eax, dword [esp + 0x84]
test eax, eax
jl 0x459d5a
cmp eax, dword [edi + 0x30]
jge 0x459d5a
lea ebp, [eax*4]
mov eax, dword [edi + 0x2c]
mov esi, dword [eax + ebp]
mov ecx, dword [esi + 0x50]
add eax, ebp
lea eax, [esi + 0x50]
mov dword [esp + 0x2c], eax
mov eax, dword [ecx - 0xc]
test eax, eax
jne 0x4596ec
mov edx, dword [esi + 0x54]
mov eax, dword [edx - 0xc]
test eax, eax
lea ebx, [esi + 0x54]
jne 0x45969f
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx + 4]
mov eax, dword [edi + 0x30]
cmp dword [esp + 0x18], eax
jg 0x459d5a
sub eax, dword [esp + 0x84]
dec eax
je 0x45969a
mov ecx, dword [edi + 0x2c]
add ebp, ecx
lea edx, [eax*4]
push edx
lea eax, [ebp + 4]
push eax
push ebp
call fcn.0042c460
add esp, 0xc
dec dword [edi + 0x30]
jmp 0x4596ec
mov ecx, ebx
call fcn.004468b0
mov eax, dword [ebx]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jg 0x4596b4
or eax, 0xffffffff
jmp 0x4596cc
push 0x26
push eax
call fcn.0042ec7e
add esp, 8
test eax, eax
jne 0x4596c8
or eax, 0xffffffff
jmp 0x4596cc
sub eax, dword [ebx]
sar eax, 1
inc eax
js 0x459af0
mov ebx, dword [ebx]
cmp eax, dword [ebx - 0xc]
jg 0x459af0
movzx eax, word [ebx + eax*2]
mov ecx, dword [esp + 0x2c]
push eax
call fcn.004594d0
mov eax, dword [esp + 0x84]
mov edx, dword [esp + 0x18]
dec eax
dec edx
test eax, eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x18], edx
jge 0x459610
mov ebp, dword [edi + 0x30]
xor ebx, ebx
test ebp, ebp
mov dword [esp + 0x14], ebp
jle 0x459acf
lea ecx, [ecx]
test ebx, ebx
jl 0x459d5a
cmp ebx, dword [edi + 0x30]
jge 0x459d5a
mov ecx, dword [edi + 0x2c]
mov ebp, dword [ecx + ebx*4]
mov esi, dword [ebp + 0x50]
lea eax, [ecx + ebx*4]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
sub esi, 0x10
call dword [edx + 0x10]
mov ecx, dword [esi + 0xc]
test ecx, ecx
lea edx, [esi + 0xc]
jl 0x459763
cmp eax, dword [esi]
jne 0x459763
mov eax, esi
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x45979b
mov ecx, dword [esi + 4]
mov edx, dword [eax]
push 2
push ecx
mov ecx, eax
call dword [edx]
test eax, eax
je 0x459aeb
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]
mov edi, dword [esp + 0x10]
add eax, 0x10
mov dword [esp + 0x20], eax
xor eax, eax
mov dword [esp + 0x38], 0x54b2c4
mov dword [esp + 0x3c], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], eax
push 0xffffffffffffffff
push 1
lea ecx, [esp + 0x40]
mov byte [esp + 0x80], 3
call fcn.004d5e60
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x3c]
inc ebx
cmp ebx, ecx
mov dword [eax], ebp
mov dword [esp + 0x30], ebx
mov esi, ebx
jge 0x459852
jmp 0x4597f0
mov edi, dword [esp + 0x10]
lea esp, [esp]
test esi, esi
jl 0x459d5a
cmp esi, dword [edi + 0x30]
jge 0x459d5a
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x2c]
mov edi, dword [ecx + esi*4]
mov edx, dword [esp + 0x20]
lea eax, [ecx + esi*4]
mov eax, dword [edi + 0x50]
push edx
push eax
call fcn.0042ca45
add esp, 8
test eax, eax
jne 0x459845
mov eax, dword [esp + 0x40]
test eax, eax
mov ebp, eax
jl 0x459d5a
push 0xffffffffffffffff
inc eax
push eax
lea ecx, [esp + 0x40]
call fcn.004d5e60
mov eax, dword [esp + 0x3c]
mov dword [eax + ebp*4], edi
mov eax, dword [esp + 0x14]
inc esi
cmp esi, eax
jl 0x4597e8
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x40]
cmp esi, 2
jl 0x459a80
push 0x54b848
lea ecx, [esp + 0x88]
call fcn.00402aa0
xor eax, eax
test esi, esi
mov byte [esp + 0x78], 4
mov dword [esp + 0x1c], 1
mov dword [esp + 0x18], eax
jle 0x459a56
jmp 0x459895
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x18]
test eax, eax
jl 0x459d5a
cmp eax, esi
jge 0x459d5a
mov ecx, dword [esp + 0x3c]
mov edi, dword [ecx + eax*4]
mov edx, dword [edi + 0x54]
mov eax, dword [edx - 0xc]
xor esi, esi
test eax, eax
jle 0x45997b
mov ecx, dword [esp + 0x84]
test esi, esi
jl 0x459af0
mov eax, dword [edi + 0x54]
cmp esi, dword [eax - 0xc]
jg 0x459af0
mov edx, dword [ecx - 0xc]
test edx, edx
movzx eax, word [eax + esi*2]
jle 0x45990d
push eax
push ecx
call fcn.0042ec7e
mov ecx, dword [esp + 0x8c]
add esp, 8
test eax, eax
je 0x45990d
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
je 0x45990d
mov eax, dword [edi + 0x54]
mov edx, dword [eax - 0xc]
inc esi
cmp esi, edx
jl 0x4598c3
jmp 0x45997b
mov eax, dword [edi + 0x54]
cmp esi, dword [eax - 0xc]
jg 0x459af0
mov bx, word [eax + esi*2]
mov eax, dword [ecx - 4]
mov edi, dword [ecx - 0xc]
mov edx, 1
sub edx, eax
mov eax, dword [ecx - 8]
lea esi, [edi + 1]
sub eax, esi
or eax, edx
jge 0x45994a
push esi
lea ecx, [esp + 0x88]
call fcn.004034d0
mov ecx, dword [esp + 0x84]
test esi, esi
mov word [ecx + edi*2], bx
jl 0x459af0
mov eax, dword [esp + 0x84]
cmp esi, dword [eax - 8]
jg 0x459af0
test bx, bx
mov dword [eax - 0xc], esi
mov ecx, dword [esp + 0x84]
mov word [ecx + esi*2], 0
jne 0x4599e7
call fcn.00501205
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x30]
push 0x54b840
push ecx
mov byte [esp + 0x84], 5
call fcn.004046f0
mov eax, dword [esp + 0x38]
mov ecx, dword [eax - 0xc]
add esp, 0xc
test ecx, ecx
jl 0x459af0
mov esi, dword [esp + 0x1c]
mov bx, word [eax]
inc esi
add eax, 0xfffffff0
mov dword [esp + 0x1c], esi
mov byte [esp + 0x78], 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4599e7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x18]
mov esi, dword [eax + ecx*4]
mov eax, dword [esi + 0x50]
mov ebp, dword [eax - 0xc]
mov edx, dword [eax - 4]
mov eax, dword [eax - 8]
add esi, 0x50
lea edi, [ebp + 1]
mov ecx, 1
sub ecx, edx
sub eax, edi
or eax, ecx
jge 0x459a19
push edi
mov ecx, esi
call fcn.004034d0
test edi, edi
mov eax, dword [esi]
mov word [eax + ebp*2], bx
jl 0x459af0
mov eax, dword [esi]
cmp edi, dword [eax - 8]
jg 0x459af0
mov ecx, dword [esp + 0x40]
mov dword [eax - 0xc], edi
mov eax, dword [esp + 0x18]
mov edx, dword [esi]
inc eax
cmp eax, ecx
mov word [edx + edi*2], 0
mov dword [esp + 0x18], eax
jl 0x45988d
mov ebx, dword [esp + 0x30]
mov eax, dword [esp + 0x84]
add eax, 0xfffffff0
mov byte [esp + 0x78], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x459a7c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x3c]
test eax, eax
mov byte [esp + 0x78], 2
mov dword [esp + 0x38], 0x54b2c4
je 0x459a9a
push eax
call fcn.00501033
add esp, 4
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x78], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x459abd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
cmp ebx, eax
mov edi, dword [esp + 0x10]
jl 0x459720
mov ebp, eax
mov ecx, dword [edi + 0x9c]
call fcn.005001c3
test eax, 0x400000
je 0x459afa
mov dword [esp + 0x2c], 1
jmp 0x459b04
call fcn.00403210
push 0x80070057
call fcn.00403070
mov eax, dword [edi + 0xc4]
mov dword [esp + 0x2c], eax
test ebp, ebp
mov dword [esp + 0x84], 0
jle 0x459cf1
jmp 0x459b20
mov eax, dword [esp + 0x84]
test eax, eax
jl 0x459d5a
mov ecx, dword [esp + 0x10]
cmp eax, dword [ecx + 0x30]
jge 0x459d5a
mov ecx, dword [ecx + 0x2c]
mov esi, dword [ecx + eax*4]
lea eax, [ecx + eax*4]
mov eax, dword [esi + 0x50]
mov ecx, dword [eax - 0xc]
lea edx, [esp + 0x20]
push edx
push ecx
push eax
mov eax, dword [esp + 0x70]
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
add eax, 2
cmp eax, 0xf
mov ebx, eax
jg 0x459b74
mov ebx, 0xf
lea edi, [ecx + 6]
cmp edi, 0x10
jg 0x459b81
mov edi, 0x10
mov ecx, dword [esi + 0x5c]
mov dword [esp + 0x30], ecx
mov edx, dword [esi + 0x60]
mov dword [esp + 0x34], edx
mov eax, dword [esi + 0x58]
push eax
push 0x53be18
call fcn.00503cc1
add esp, 8
test eax, eax
jne 0x459bba
mov edx, dword [esp + 0x80]
mov eax, dword [edx + 0x1c]
lea ecx, [esp + 0x30]
push ecx
push eax
call dword [sym.imp.USER32.dll_ClientToScreen]
mov ecx, dword [esi + 0x6c]
test cl, 4
je 0x459bcd
mov eax, ebx
cdq
sub eax, edx
mov ebp, eax
sar ebp, 1
jmp 0x459bda
mov edx, ecx
and dl, 8
neg dl
sbb edx, edx
and edx, ebx
mov ebp, edx
test cl, 1
je 0x459be8
mov eax, edi
cdq
sub eax, edx
sar eax, 1
jmp 0x459bfb
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x459bf9
test cl, 2
jne 0x459bf9
xor eax, eax
jmp 0x459bfb
mov eax, edi
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
sub ecx, ebp
sub edx, eax
mov eax, dword [esp + 0x28]
add ebx, ecx
mov dword [esp + 0x3c], ecx
mov ecx, dword [eax + 0xd0]
add edi, edx
test ecx, ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], ebx
je 0x459c37
mov eax, dword [esi + 0x64]
test eax, eax
jne 0x459c37
mov edi, 1
jmp 0x459c39
xor edi, edi
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x9c]
mov ebx, dword [esi]
push 0
push 0
push eax
lea edx, [esp + 0x44]
push edx
push SysReAllocString
push 0
push 0
push 0
push 0
push 0x800
call fcn.004fcfa4
push eax
mov eax, edi
neg eax
sbb eax, eax
and eax, 0x80000
or eax, 0x80
push eax
mov ecx, esi
call dword [ebx + 0x58]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
push 0x210
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x40]
sub edx, ecx
push edx
push eax
push ecx
push 0x5813f0
mov ecx, esi
call fcn.0050045c
mov ebx, dword [esp + 0x28]
mov eax, dword [ebx]
push 1
push esi
push 0
mov ecx, ebx
call dword [eax + 0xfc]
test edi, edi
je 0x459cd0
mov ecx, dword [esi + 0x1c]
push 2
push 0x96
push 0
push ecx
call dword [ebx + 0xd0]
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x14]
inc eax
cmp eax, ecx
mov dword [esp + 0x84], eax
jl 0x459b20
mov edi, dword [esp + 0x10]
mov ebp, ecx
xor esi, esi
test ebp, ebp
jle 0x459d26
test esi, esi
jl 0x459d5a
cmp esi, dword [edi + 0x30]
jge 0x459d5a
mov edx, dword [edi + 0x2c]
push 0x253
push 0
push 0
lea eax, [edx + esi*4]
mov eax, dword [eax]
push 0
push 0
push 0x5813f0
mov ecx, eax
call fcn.0050045c
inc esi
cmp esi, ebp
jl 0x459cf7
lea ecx, [esp + 0x4c]
mov byte [esp + 0x78], 0
call fcn.004675f0
lea ecx, [esp + 0x5c]
mov dword [esp + 0x78], 0xffffffff
call fcn.00505b51
pop ebx
pop esi
mov ecx, dword [esp + 0x68]
pop edi
pop ebp
mov dword fs:[0], ecx
add esp, 0x6c
ret 8
call fcn.004f9708
int3