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

Disassembly:
push 0xffffffffffffffff
push 0x500d30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x30]
call fcn.004ce3b0
call fcn.004cdb10
xor esi, esi
push 0x400
mov dword [esp + 0x78], esi
call fcn.004dbbfa
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], eax
add eax, 0x400
add esp, 4
mov dword [esp + 0x3c], eax
mov dword [esp + 0x68], esi
mov bl, byte [esp + 0x84]
mov dword [esp + 0x74], 1
test bl, 1
mov eax, 0x4107
jne 0x4597e2
mov eax, 0x6107
push eax
mov eax, dword [esp + 0x80]
lea ecx, [esp + 0x34]
push eax
push ecx
call fcn.0045a870
add esp, 0xc
test eax, eax
jne 0x459848
mov eax, dword [esp + 0x68]
mov dword [esp + 0x74], 3
cmp eax, esi
je 0x45981d
push ecx
mov dword [esp + 0x84], esp
push eax
call fcn.00406cd0
add esp, 8
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
sub eax, edx
lea ecx, [esp + 0x3c]
push eax
mov byte [esp + 0x78], 2
call fcn.0041b390
mov dword [esp + 0x74], 0xffffffff
call fcn.004cdf30
jmp 0x459c5c
test bl, 0x10
je 0x459a5e
mov eax, dword [esp + 0x90]
mov dword [esp + 0x28], esi
cmp eax, esi
mov dword [esp + 0x2c], esi
je 0x459871
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
mov esi, dword [esp + 0x80]
mov eax, dword [esp + 0x2c]
mov edi, dword [esi + 4]
cmp edi, eax
mov dword [esp + 0x10], edi
jl 0x45999a
cmp edi, dword [esi + 4]
jne 0x459894
mov eax, dword [esi]
jmp 0x4598a0
mov edx, dword [ebp]
push edi
mov ecx, ebp
call dword [edx + 0x150]
mov dword [esp + 0x90], eax
mov eax, dword [ebp]
push edi
mov ecx, ebp
call dword [eax + 0x158]
test eax, eax
mov dword [esp + 0x18], eax
je 0x459989
mov ecx, dword [esp + 0x90]
test ecx, ecx
jle 0x459989
mov ecx, dword [esp + 0x2c]
xor esi, esi
xor ebx, ebx
cmp edi, ecx
jne 0x4598e8
mov ebx, dword [esp + 0x28]
jmp 0x4598e8
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x30]
test ch, 8
jne 0x45997a
mov edx, dword [esp + 0x90]
push ecx
lea ecx, [esp + 0x34]
push 0
push ecx
lea ecx, [eax + edx*2]
lea edx, [eax + ebx*2]
lea edi, [ebp + 0x26c]
push ecx
push edx
push edi
lea ecx, [esp + 0x38]
call fcn.004611d0
mov eax, dword [eax]
push eax
call fcn.00463c00
add esp, 0x18
test eax, eax
setne al
test al, al
je 0x459976
mov eax, dword [edi]
mov ecx, dword [edi]
add eax, 0x14
add ecx, 8
mov esi, dword [eax]
mov edx, dword [ecx + 4]
mov ecx, dword [esp + 0x8c]
sub esi, edx
mov edx, dword [esp + 0x10]
mov dword [ecx + 4], edx
mov edi, dword [edi]
add edi, 8
sar esi, 1
mov eax, dword [edi + 4]
mov edi, dword [esp + 0x18]
sub eax, edi
sar eax, 1
mov dword [ecx], eax
add eax, esi
add ebx, eax
mov eax, dword [esp + 0x90]
cmp ebx, eax
jl 0x4598e0
mov edi, dword [esp + 0x10]
test esi, esi
jne 0x459a33
mov esi, dword [esp + 0x80]
mov eax, dword [esp + 0x2c]
dec edi
cmp edi, eax
mov dword [esp + 0x10], edi
jge 0x45988b
mov eax, dword [esp + 0x88]
test eax, eax
je 0x459c4b
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov eax, dword [ebp]
mov dword [esp + 0x28], ecx
mov ecx, ebp
mov dword [esp + 0x2c], edx
call dword [eax + 0x138]
mov edx, dword [ebp]
mov ebx, eax
mov eax, dword [esi + 4]
mov ecx, ebp
push eax
dec ebx
call dword [edx + 0x150]
mov edx, dword [esp + 0x8c]
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x84]
push ecx
push edx
mov edx, dword [esp + 0x84]
push 0
lea ecx, [esp + 0x2c]
push eax
push ecx
push edx
mov ecx, ebp
mov dword [esp + 0x3c], ebx
call fcn.00459770
mov esi, eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x74], 7
test eax, eax
je 0x459a29
push ecx
mov dword [esp + 0x84], esp
push eax
call fcn.00406cd0
add esp, 8
mov byte [esp + 0x74], 6
jmp 0x459c26
mov eax, dword [esp + 0x68]
mov dword [esp + 0x74], 5
test eax, eax
je 0x459a54
push ecx
mov dword [esp + 0x84], esp
push eax
call fcn.00406cd0
add esp, 8
mov byte [esp + 0x74], 4
jmp 0x459c26
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x138]
dec eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x90]
cmp eax, esi
je 0x459a8a
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x2c]
mov ebx, dword [eax + 4]
cmp ebx, ecx
jg 0x459b38
jmp 0x459aab
mov eax, dword [esp + 0x80]
xor esi, esi
cmp ebx, dword [eax + 4]
jne 0x459ab2
mov esi, dword [eax]
mov eax, dword [ebp]
push ebx
mov ecx, ebp
call dword [eax + 0x158]
mov edx, dword [ebp]
push ebx
mov ecx, ebp
mov edi, eax
call dword [edx + 0x150]
cmp ebx, dword [esp + 0x2c]
jne 0x459ad6
mov eax, dword [esp + 0x28]
cmp esi, eax
jge 0x459b22
test edi, edi
je 0x459b22
mov ecx, dword [esp + 0x30]
test ch, 8
jne 0x459b22
push ecx
lea ecx, [esp + 0x34]
push 0
lea edx, [edi + eax*2]
push ecx
lea eax, [edi + esi*2]
push edx
lea ecx, [ebp + 0x26c]
push eax
push ecx
lea ecx, [esp + 0xa8]
call fcn.004611d0
mov edx, dword [eax]
push edx
call fcn.00463c00
add esp, 0x18
test eax, eax
setne al
test al, al
jne 0x459bc9
mov eax, dword [esp + 0x2c]
inc ebx
cmp ebx, eax
jle 0x459aa2
mov eax, dword [esp + 0x80]
xor esi, esi
cmp dword [esp + 0x88], esi
je 0x459c4b
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x8c]
lea eax, [esp + 0x18]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x84]
push eax
push ecx
mov ecx, dword [esp + 0x84]
push esi
lea eax, [esp + 0x1c]
push edx
push eax
push ecx
mov ecx, ebp
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
call fcn.00459770
mov edi, eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x74], 0xb
cmp eax, esi
je 0x459ba7
push ecx
mov dword [esp + 0x84], esp
push eax
call fcn.00406cd0
add esp, 8
lea ecx, [esp + 0x3c]
mov byte [esp + 0x74], 0xa
call fcn.00406cb0
mov dword [esp + 0x74], 0xffffffff
call fcn.004cdf30
mov eax, edi
jmp 0x459c5e
mov eax, dword [ebp + 0x26c]
mov ecx, dword [ebp + 0x26c]
add eax, 0x14
add ecx, 8
mov esi, dword [eax]
mov eax, dword [ecx + 4]
sub esi, eax
mov eax, dword [esp + 0x8c]
sar esi, 1
mov dword [eax + 4], ebx
mov ebp, dword [ebp + 0x26c]
add ebp, 8
mov ecx, dword [ebp + 4]
sub ecx, edi
sar ecx, 1
mov dword [eax], ecx
mov eax, dword [esp + 0x68]
mov dword [esp + 0x74], 9
test eax, eax
je 0x459c21
push ecx
mov dword [esp + 0x84], esp
push eax
call fcn.00406cd0
add esp, 8
mov byte [esp + 0x74], 8
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
sub eax, edx
lea ecx, [esp + 0x3c]
push eax
call fcn.0041b390
mov dword [esp + 0x74], 0xffffffff
call fcn.004cdf30
mov eax, esi
jmp 0x459c5e
lea ecx, [esp + 0x30]
mov dword [esp + 0x74], 0xffffffff
call fcn.00406c40
xor eax, eax
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x68
ret 0x18