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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x10]
cmp eax, dword [ecx + 8]
jbe 0x520f7d
sub esp, 0x90
mov edx, dword [esp + 0xa4]
test edx, edx
je 0x520b96
cmp edx, 1
jne 0x520998
mov ecx, dword [esp + 0xa0]
mov eax, dword [ecx]
mov ecx, dword [esp + 0x9c]
cmp ecx, 2
jl 0x520952
mov edx, dword [esp + 0x94]
jmp 0x520983
mov dword [esp + 0x70], eax
lea eax, [0x63e860]
mov dword [esp], eax
mov dword [esp + 4], 2
mov dword [esp + 8], 6
call fcn.00447490
mov eax, dword [esp + 0xc]
mov edx, eax
mov ecx, 6
mov eax, dword [esp + 0x70]
mov ebx, edx
mul eax
nop
nop
mov dword [ebx + 4], edx
mov dword [ebx], eax
mov eax, 2
jmp 0x520f55
mov eax, dword [esp + 0x9c]
test eax, eax
je 0x5209cc
mov ebx, dword [esp + 0x94]
lea ebp, [ebx + eax*4 - 4]
mov esi, dword [esp + 0xa8]
mov edi, dword [esp + 0xa0]
mov ecx, edi
lea edi, [edi + esi*4 - 4]
cmp edi, ebp
jne 0x5209e1
xor eax, eax
xor ebx, ebx
jmp 0x5209e1
mov ecx, dword [esp + 0xa0]
mov esi, dword [esp + 0xa8]
mov ebx, dword [esp + 0x94]
cmp dword [0x80825c], edx
jg 0x520ac7
mov ebp, dword [0x808260]
cmp edx, ebp
jl 0x520a07
nop
mov edi, edx
xor edx, edx
mov dword [esp + 0x6c], edx
mov edx, edi
jmp 0x520c30
mov ecx, edx
shl edx, 1
cmp eax, edx
jge 0x520a8b
cmp edx, 1
jne 0x520a50
lea eax, [0x63e860]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.00447490
mov ebx, dword [esp + 0xc]
mov ecx, dword [esp + 0xa4]
mov esi, dword [esp + 0xa8]
mov eax, 1
mov edx, 1
jmp 0x520a8b
mov dword [esp + 0x64], edx
lea eax, [0x63e860]
mov dword [esp], eax
mov dword [esp + 4], edx
lea eax, [edx + 4]
mov dword [esp + 0x3c], eax
mov dword [esp + 8], eax
call fcn.00447490
mov ebx, dword [esp + 0xc]
mov ecx, dword [esp + 0xa4]
mov esi, dword [esp + 0xa8]
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x64]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x7c], ebx
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov ebp, dword [esp + 0xa0]
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], esi
call fcn.00520390
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x30]
jmp 0x520bf2
mov ecx, edx
shl edx, 1
cmp eax, edx
jge 0x520b4b
cmp edx, 1
jne 0x520b10
lea eax, [0x63e860]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.00447490
mov ebx, dword [esp + 0xc]
mov ecx, dword [esp + 0xa4]
mov esi, dword [esp + 0xa8]
mov eax, 1
mov edx, 1
jmp 0x520b4b
mov dword [esp + 0x68], edx
lea eax, [0x63e860]
mov dword [esp], eax
mov dword [esp + 4], edx
lea eax, [edx + 4]
mov dword [esp + 0x40], eax
mov dword [esp + 8], eax
call fcn.00447490
mov ebx, dword [esp + 0xc]
mov ecx, dword [esp + 0xa4]
mov esi, dword [esp + 0xa8]
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x68]
mov dword [esp + 0x40], eax
mov dword [esp + 0x34], edx
mov dword [esp + 0x80], ebx
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov ebp, dword [esp + 0xa0]
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], esi
call fcn.0051ef30
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x34]
jmp 0x520bc5
mov eax, dword [esp + 0x94]
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], 0
mov eax, dword [esp + 0x9c]
mov dword [esp + 0xb4], eax
add esp, 0x90
ret
dec ecx
test ecx, ecx
jle 0x520bd1
mov edx, dword [eax + ecx*4 - 4]
test edx, edx
je 0x520bc4
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], ecx
mov eax, dword [esp + 0x40]
mov dword [esp + 0xb4], eax
add esp, 0x90
ret
dec ecx
test ecx, ecx
jle 0x520bfe
mov edx, dword [eax + ecx*4 - 4]
test edx, edx
je 0x520bf1
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], ecx
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xb4], eax
add esp, 0x90
ret
sar edx, 1
mov esi, dword [esp + 0x6c]
inc esi
mov dword [esp + 0x6c], esi
mov esi, dword [esp + 0xa8]
cmp edx, ebp
jg 0x520c1e
mov ebp, dword [esp + 0x6c]
cmp ebp, 0x20
sbb esi, esi
mov ecx, ebp
shl edx, cl
and edx, esi
lea ebp, [edx + edx*2]
shl ebp, 1
mov esi, edi
shl edi, 1
cmp edi, ebp
jl 0x520c52
mov ebp, edi
mov dword [esp + 0x48], edx
mov dword [esp + 0x50], edi
cmp eax, ebp
jge 0x520cc6
cmp ebp, 1
jne 0x520c95
lea eax, [0x63e860]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.00447490
mov ebx, dword [esp + 0xc]
mov edx, dword [esp + 0x48]
mov eax, 1
mov ebp, 1
jmp 0x520cc6
mov dword [esp + 0x44], ebp
lea eax, [0x63e860]
mov dword [esp], eax
mov dword [esp + 4], ebp
lea eax, [ebp + 4]
mov dword [esp + 0x38], eax
mov dword [esp + 8], eax
call fcn.00447490
mov ebx, dword [esp + 0xc]
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x38]
mov ebp, dword [esp + 0x44]
mov dword [esp + 0x78], ebx
mov dword [esp + 0x4c], eax
mov dword [esp], ebx
mov dword [esp + 4], ebp
mov dword [esp + 8], eax
mov ecx, dword [esp + 0xa0]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
mov ebp, dword [esp + 0xa8]
mov dword [esp + 0x14], ebp
call fcn.00520570
mov eax, dword [esp + 0x48]
mov ecx, eax
shl eax, 1
mov dword [esp + 0x74], eax
mov edx, dword [esp + 0x50]
mov ebx, edx
sub edx, eax
mov ebp, dword [esp + 0x4c]
mov esi, ebp
sub ebp, eax
mov edi, ecx
shl ecx, 3
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and ecx, ebp
mov ebp, dword [esp + 0x78]
add ecx, ebp
test edx, edx
je 0x520d51
mov dword [esp], ecx
shl edx, 2
mov dword [esp + 4], edx
call fcn.0045f5e0
mov eax, dword [esp + 0x74]
mov ebx, dword [esp + 0x50]
mov ebp, dword [esp + 0x78]
mov esi, dword [esp + 0x4c]
mov edi, dword [esp + 0x48]
mov ecx, dword [esp + 0xa4]
cmp ecx, edi
jle 0x520f29
mov dword [esp], eax
call fcn.00520f90
mov eax, dword [esp + 4]
mov dword [esp + 0x88], eax
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov ebx, dword [eax + 8]
nop
mov ebp, dword [esp + 0xa0]
mov esi, dword [esp + 0x48]
mov edi, esi
jmp 0x520d93
dec esi
mov eax, dword [esp + 0x88]
test esi, esi
jle 0x520d9f
mov eax, dword [ebp + esi*4 - 4]
test eax, eax
je 0x520d8b
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x14], eax
sub eax, edi
mov dword [esp + 0x58], eax
mov ecx, eax
neg eax
mov edx, edi
shl edi, 2
sar eax, 0x1f
and edi, eax
lea eax, [ebp + edi]
mov dword [esp + 0x84], eax
mov dword [esp + 0x18], eax
mov ebx, dword [esp + 0xa4]
sub ebx, edx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ecx
call fcn.0051fb90
mov eax, dword [esp + 0x24]
mov dword [esp + 0x8c], eax
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x5c], ecx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x60], edx
mov ebx, dword [esp + 0x78]
mov dword [esp], ebx
mov ebp, dword [esp + 0x50]
mov dword [esp + 4], ebp
mov esi, dword [esp + 0x4c]
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov edi, dword [esp + 0x48]
mov dword [esp + 0x18], edi
call fcn.0051fab0
mov eax, dword [esp + 0x78]
mov dword [esp], eax
mov ecx, dword [esp + 0x50]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x4c]
mov dword [esp + 8], edx
mov ebx, dword [esp + 0x8c]
mov dword [esp + 0xc], ebx
mov ebp, dword [esp + 0x5c]
mov dword [esp + 0x10], ebp
mov esi, dword [esp + 0x60]
mov dword [esp + 0x14], esi
mov edi, dword [esp + 0x48]
mov dword [esp + 0x18], edi
call fcn.0051fab0
mov eax, dword [esp + 0x8c]
mov dword [esp], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x14], eax
call fcn.00520900
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x78]
mov dword [esp], ebx
mov ebp, dword [esp + 0x50]
mov dword [esp + 4], ebp
mov esi, dword [esp + 0x4c]
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x74]
mov dword [esp + 0x18], eax
call fcn.0051fab0
lea eax, [0xe73600]
mov dword [esp], eax
lea eax, [0x670ba0]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 8], eax
call fcn.00466510
mov ebx, dword [esp + 0x50]
mov ebp, dword [esp + 0x78]
mov esi, dword [esp + 0x4c]
jmp 0x520f2c
dec ebx
test ebx, ebx
jle 0x520f38
mov eax, dword [ebp + ebx*4 - 4]
test eax, eax
je 0x520f2b
mov dword [esp + 0xac], ebp
mov dword [esp + 0xb0], ebx
mov dword [esp + 0xb4], esi
add esp, 0x90
ret
dec eax
test eax, eax
jle 0x520f61
mov edx, dword [ebx + eax*4 - 4]
test edx, edx
je 0x520f54
mov dword [esp + 0xac], ebx
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], ecx
add esp, 0x90
ret
call fcn.0045dbb0
jmp fcn.00520900