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

Disassembly:
push 0xffffffffffffffff
push 0x570bdb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push ebp
mov ebp, ecx
xor ebx, ebx
push esi
push edi
mov eax, dword [ebp + 0x12c]
mov dword [esp + 0x14], ebp
cmp eax, ebx
je 0x48573f
cmp eax, 1
je 0x48573f
mov dword [esp + 0x10], ebx
mov dword [esp + 0x20], ebx
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x20]
mov esi, dword [ebp + 0x130]
mov edx, dword [esp + 0x80]
add eax, ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x84]
xor edi, edi
mov dword [esp + 0x40], eax
mov eax, dword [esi + 8]
cmp eax, ebx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x3c], edx
jle 0x4856cb
mov ecx, dword [esi + 4]
mov ecx, dword [ecx + edi*4]
cmp ecx, ebx
je 0x4856c3
mov edx, dword [ecx]
push 1
call dword [edx + 8]
mov eax, dword [esi + 8]
inc edi
cmp edi, eax
jl 0x4856b2
push 0xffffffffffffffff
push ebx
mov ecx, esi
call fcn.00477890
mov eax, dword [ebp + 0x90]
lea ecx, [ebp + 0x90]
call dword [eax + 0x30]
mov ecx, dword [eax + 0xe0]
lea eax, [esp + 0x54]
push eax
mov edx, dword [ecx]
call dword [edx + 0x14]
mov edx, eax
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [esp + 0x48], ecx
mov ecx, dword [edx + 8]
mov edx, dword [edx + 0xc]
lea eax, [ecx + eax + 8]
lea ecx, [ebp + 0x3c]
mov dword [esp + 0x50], edx
mov dword [esp + 0x18], eax
call fcn.00528670
cmp eax, ebx
mov dword [esp + 0x28], eax
je 0x485956
lea ecx, [esp + 0x28]
push ecx
lea ecx, [ebp + 0x3c]
call fcn.004f1fb0
cmp eax, ebx
je 0x485776
add eax, 0xffffffc4
mov dword [esp + 0x1c], eax
jmp 0x48577a
mov eax, dword [ebp + 0x48]
mov dword [esp + 0x10], 1
mov eax, dword [eax + 0x64]
cmp eax, ebx
je 0x48566f
mov edx, dword [eax + 0x3c]
lea ecx, [eax + 0x3c]
call dword [edx + 0x14]
test eax, eax
jne 0x48566f
mov ecx, ebp
call fcn.004855f0
mov dword [esp + 0x20], eax
jmp 0x485673
mov dword [esp + 0x1c], ebx
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x3c]
lea ecx, [edx + 0x3c]
call dword [eax + 0x14]
test eax, eax
jne 0x48594c
mov esi, dword [ebp + 0x130]
push 0xac
call fcn.00547b9a
mov edi, eax
add esp, 4
mov dword [esp + 0x30], edi
cmp edi, ebx
mov dword [esp + 0x6c], ebx
je 0x4857db
mov ecx, edi
call fcn.004320c0
push ebx
mov ecx, edi
mov byte [esp + 0x70], 1
mov dword [edi], 0x588654
call fcn.004324f0
push 1
mov ecx, edi
mov dword [eax + 8], ebx
call fcn.004324f0
mov dword [eax + 8], ebx
jmp 0x4857dd
xor edi, edi
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, esi
mov dword [esp + 0x74], 0xffffffff
call fcn.0048a530
mov ecx, dword [esp + 0x1c]
mov dword [edi + 0x98], esi
add ecx, 0x3c
call fcn.00528670
cmp eax, ebx
mov dword [esp + 0x24], eax
je 0x4858b0
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x24]
push edx
lea ecx, [eax + 0x3c]
call fcn.004f1fb0
cmp eax, ebx
je 0x485829
lea esi, [eax - 0x1c]
jmp 0x48582b
xor esi, esi
mov eax, dword [edi + 0x5c]
push ebx
push eax
mov ecx, edi
call fcn.004326a0
mov ecx, dword [esp + 0x1c]
mov ebp, eax
mov dword [ebp + 0x3c], esi
mov eax, dword [ecx + 0x154]
cmp eax, esi
jne 0x485852
mov edx, dword [edi]
push ebp
mov ecx, edi
call dword [edx + 0x20]
mov eax, dword [esi]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, esi
call dword [eax + 0x58]
mov eax, dword [eax]
mov ecx, ebp
push eax
mov dword [esp + 0x70], 2
call fcn.00431050
lea ecx, [esp + 0x2c]
mov dword [esp + 0x6c], 0xffffffff
call fcn.0054c5f8
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x64]
push eax
mov ecx, ebp
call fcn.00431100
mov ecx, esi
call fcn.0043f960
and eax, 1
mov ecx, ebp
push eax
call fcn.004311e0
cmp dword [esp + 0x24], ebx
jne 0x48580f
mov ebp, dword [esp + 0x14]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x30]
mov esi, dword [esp + 0x78]
sub esp, 0x10
mov ecx, esp
mov edx, dword [eax]
mov dword [ecx], esi
mov esi, dword [esp + 0x8c]
mov dword [ecx + 4], esi
mov esi, dword [esp + 0x90]
mov dword [ecx + 8], esi
mov esi, dword [esp + 0x94]
mov dword [ecx + 0xc], esi
mov ecx, dword [esp + 0x84]
push ecx
push edi
mov ecx, eax
call dword [edx + 0x58]
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
lea edx, [edi + 0x9c]
mov dword [edi + 0x9c], eax
mov eax, dword [esp + 0x80]
mov dword [edx + 4], ecx
mov dword [edx + 8], eax
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov dword [edx + 0xc], esi
je 0x485935
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x2c]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x7c]
add eax, edx
add ecx, eax
mov dword [esp + 0x7c], ecx
jmp 0x48594c
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x2c]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x78]
add eax, edx
add ecx, eax
mov dword [esp + 0x78], ecx
cmp dword [esp + 0x28], ebx
jne 0x485725
lea ecx, [ebp + 0x3c]
call fcn.00487130
cmp dword [eax + 0x74], ebx
je 0x485bec
cmp dword [esp + 0x10], ebx
jne 0x485977
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x34]
jmp 0x48597f
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x38]
mov esi, dword [esp + 0x18]
sub eax, ecx
sub eax, esi
push ebx
mov dword [ebp + 0x148], eax
add ebp, 0x90
mov ecx, ebp
call fcn.004324f0
push 1
mov ecx, ebp
mov esi, eax
call fcn.004324f0
mov edi, eax
mov eax, dword [esp + 0x10]
cmp eax, ebx
jne 0x4859c8
mov edx, dword [esp + 0x80]
mov eax, dword [esp + 0x78]
xor ecx, ecx
cmp eax, edx
setg cl
mov dword [esp + 0x1c], ecx
jmp 0x4859de
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x7c]
xor eax, eax
cmp edx, ecx
setg al
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x1c], ebx
je 0x485a30
mov eax, 2
mov ecx, dword [esp + 0x34]
mov dword [esi + 8], eax
mov dword [edi + 8], eax
mov eax, dword [esp + 0x14]
neg eax
sbb eax, eax
sub esp, 0x10
mov edx, esp
and eax, ebp
push eax
mov eax, dword [ebp]
mov dword [edx], ecx
mov ecx, dword [esp + 0x4c]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x50]
mov dword [edx + 8], ecx
mov ecx, dword [esp + 0x54]
mov dword [edx + 0xc], ecx
lea edx, [esp + 0x68]
push edx
mov ecx, ebp
call dword [eax + 0x30]
mov ecx, eax
call fcn.00436e60
jmp 0x485a7e
mov dword [esi + 8], ebx
sub esp, 0x10
mov dword [edi + 8], ebx
mov ebx, esp
xor eax, eax
xor ecx, ecx
mov dword [ebx], eax
xor edx, edx
xor ebp, ebp
mov dword [ebx + 4], ecx
mov ecx, esi
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], ebp
call fcn.00431740
sub esp, 0x10
xor eax, eax
mov ebx, esp
xor ecx, ecx
xor edx, edx
xor esi, esi
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov ecx, edi
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], esi
call fcn.00431740
mov ecx, dword [esp + 0x14]
mov dword [ecx + 0xa4], esi
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x38]
mov edi, dword [esp + 0x3c]
mov ebp, dword [esp + 0x40]
mov dword [esp + 0x78], edx
test eax, eax
mov dword [esp + 0x7c], ebx
je 0x485bec
mov edx, dword [esp + 0x14]
mov esi, dword [edx + 0xa4]
test esi, esi
jge 0x485afe
mov eax, dword [esp + 0x10]
test eax, eax
mov eax, ebp
jne 0x485abc
mov eax, edi
mov ecx, dword [edx + 0x148]
mov edx, eax
sub edx, dword [esp + 0x18]
add esi, ecx
sub edx, dword [esp + 0x20]
sub edx, 0x18
cmp esi, edx
jge 0x485afa
mov esi, dword [esp + 0x20]
sub eax, ecx
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
sub eax, ecx
xor ecx, ecx
sub eax, esi
add eax, 0xffffffe8
test eax, eax
setg cl
dec ecx
and eax, ecx
mov dword [edx + 0xa4], eax
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x485b18
mov ebx, dword [edx + 0xa4]
mov eax, dword [esp + 0x38]
add ebx, eax
mov dword [esp + 0x7c], ebx
jmp 0x485b28
mov eax, dword [edx + 0xa4]
mov ecx, dword [esp + 0x34]
add eax, ecx
mov dword [esp + 0x78], eax
mov eax, dword [edx + 0x130]
xor ecx, ecx
mov dword [esp + 0x24], ecx
mov edx, dword [eax + 8]
test edx, edx
jle 0x485bec
mov eax, dword [eax + 4]
mov esi, dword [eax + ecx*4]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x485b60
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x2c]
mov ecx, dword [esp + 0x18]
mov ebp, eax
add ebp, ecx
add ebp, ebx
jmp 0x485b75
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x2c]
mov ecx, dword [esp + 0x78]
mov edi, eax
mov eax, dword [esp + 0x18]
add edi, ecx
add edi, eax
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x30]
mov ebx, dword [esp + 0x78]
sub esp, 0x10
mov ecx, esp
mov edx, dword [eax]
mov dword [ecx], ebx
mov ebx, dword [esp + 0x8c]
mov dword [ecx + 4], ebx
mov dword [ecx + 8], edi
mov dword [ecx + 0xc], ebp
mov ecx, dword [esp + 0x84]
push ecx
push esi
mov ecx, eax
call dword [edx + 0x58]
mov edx, dword [esp + 0x78]
add esi, 0x9c
mov eax, dword [esp + 0x10]
mov dword [esi], edx
test eax, eax
mov dword [esi + 4], ebx
mov dword [esi + 8], edi
mov dword [esi + 0xc], ebp
je 0x485bcc
mov ebx, ebp
mov dword [esp + 0x7c], ebx
jmp 0x485bd0
mov dword [esp + 0x78], edi
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
inc ecx
mov eax, dword [eax + 0x130]
mov dword [esp + 0x24], ecx
cmp ecx, dword [eax + 8]
jl 0x485b3f
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x60
ret 0x14