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

Disassembly:
sub esp, 0x148
push esi
mov esi, eax
mov al, byte [0x6249e2]
test al, al
je 0x520eac
cmp word [0x75c140], 1
jne 0x520eac
mov eax, dword [0x6b8344]
mov ecx, dword [eax]
push ebx
push ebp
push edi
push 1
push 0x16
xor ebp, ebp
push eax
mov dword [esp + 0x20], ebp
call dword [ecx + 0xe4]
mov eax, dword [0x6b8344]
mov edx, dword [eax]
push 7
push 0xa8
push eax
call dword [edx + 0xe4]
mov eax, dword [0x6b8344]
mov ecx, dword [eax]
push 1
push 0x1b
push eax
call dword [ecx + 0xe4]
mov eax, dword [0x6b8344]
mov edx, dword [eax]
push 1
push 0xf
push eax
call dword [edx + 0xe4]
mov eax, dword [0x6b8344]
mov ecx, dword [eax]
push 1
push 0x18
push eax
call dword [ecx + 0xe4]
mov eax, dword [0x6b8344]
mov edx, dword [eax]
push ebp
push 7
push eax
call dword [edx + 0xe4]
mov eax, dword [0x6b8344]
mov ecx, dword [eax]
push ebp
push 0x1c
push eax
call dword [ecx + 0xe4]
mov cx, word [esi + 0x88]
call fcn.0051c030
mov ecx, dword [0x67c9e8]
mov eax, dword [0x6b8344]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x15c]
mov cl, byte [0x637d48]
mov edi, dword [0x67c9f0]
mov eax, dword [0x6b8344]
mov edx, dword [eax]
neg cl
sbb ecx, ecx
and ecx, 0x10
or ecx, edi
and ecx, 0x10
push ecx
push eax
call dword [edx + 0x134]
mov ecx, dword [0x639378]
mov eax, dword [0x6b8344]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x170]
mov ax, word [0x75c17a]
mov ecx, dword [0x75c178]
mov ebx, dword [0x75c174]
mov edx, dword [esi + 4]
sub ax, word [0x75c176]
sub ecx, ebx
test edx, edx
je 0x520345
fld dword [edx]
fmul dword [0x61293c]
jmp 0x52034b
fld dword [0x612220]
test edx, edx
je 0x52035a
fld dword [edx + 4]
fmul dword [0x612938]
jmp 0x520360
fld dword [0x612220]
movsx edx, ax
mov dword [esp + 0x10], edx
movsx eax, cx
fild dword [esp + 0x10]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x48]
fdivr dword [0x612224]
mov ecx, dword [esi + 0x40]
mov edx, dword [esi + 0x44]
mov dword [esp + 0x48], eax
mov eax, dword [esi + 0x54]
mov dword [esp + 0x54], eax
mov al, byte [esi + 8]
test al, al
mov dword [esp + 0xe8], ecx
mov ecx, dword [esi + 0x4c]
mov dword [esp + 0xec], edx
mov edx, dword [esi + 0x50]
mov dword [esp + 0xa8], 0x3b4ccccd
mov dword [esp + 0xac], 0
mov dword [esp + 0xb0], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0xbb888889
mov dword [esp + 0xc0], 0
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 0
mov dword [esp + 0xd0], 0
mov dword [esp + 0xd4], 0x3f000000
mov dword [esp + 0xd8], 0
mov dword [esp + 0xdc], 0
mov dword [esp + 0xe0], 0
mov dword [esp + 0xe4], 0x3f800000
mov dword [esp + 0xf0], 0
mov dword [esp + 0xf4], 0x3f800000
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
mov dword [esp + 0x58], 0x3f800000
fadd dword [0x612224]
fsubr st(2)
fstp dword [esp + 0xb4]
fild dword [esp + 0x10]
fdivr dword [0x612224]
fadd st(1)
fadd dword [0x612224]
fstp dword [esp + 0xc4]
fstp st(0)
fstp st(0)
jne 0x5204f0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0x3f800000
mov al, byte [esi + 9]
test al, al
mov dword [esp + 0x60], 0x3f800000
jne 0x5204fa
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0x3f800000
mov al, byte [esi + 0xa]
test al, al
mov dword [esp + 0x68], 0x3f800000
jne 0x520504
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0x3f800000
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x52050e
mov ecx, dword [eax]
mov dword [esp + 0x70], ecx
jmp 0x520516
mov dword [esp + 0x5c], 0
jmp 0x5204a3
mov dword [esp + 0x64], 0
jmp 0x5204c2
mov dword [esp + 0x6c], 0
jmp 0x5204e1
mov dword [esp + 0x70], 0
test eax, eax
je 0x520523
mov edx, dword [eax + 4]
mov dword [esp + 0x74], edx
jmp 0x52052b
mov dword [esp + 0x74], 0
mov eax, dword [esi + 0x20]
test eax, eax
je 0x52053a
mov ecx, dword [eax]
mov dword [esp + 0x78], ecx
jmp 0x520542
mov dword [esp + 0x78], 0
test eax, eax
je 0x52054f
mov edx, dword [eax + 4]
mov dword [esp + 0x7c], edx
jmp 0x520557
mov dword [esp + 0x7c], 0
mov eax, dword [esi + 0x24]
test eax, eax
je 0x520569
mov ecx, dword [eax]
mov dword [esp + 0x80], ecx
jmp 0x520574
mov dword [esp + 0x80], 0
test eax, eax
je 0x520584
mov edx, dword [eax + 4]
mov dword [esp + 0x84], edx
jmp 0x52058f
mov dword [esp + 0x84], 0
mov edx, dword [esi + 0x30]
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x2c]
mov dword [esp + 0x90], edx
mov edx, dword [esi + 0x3c]
mov dword [esp + 0x88], eax
mov eax, dword [esi + 0x34]
mov dword [esp + 0x9c], edx
push 5
lea edx, [esp + 0xac]
mov dword [esp + 0x90], ecx
mov ecx, dword [esi + 0x38]
push edx
mov dword [esp + 0x9c], eax
mov eax, dword [0x6b8344]
push 0xd
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xac], 0
mov dword [esp + 0xb0], 0
mov ecx, dword [eax]
push eax
call dword [ecx + 0x178]
mov eax, dword [0x6b8344]
mov ecx, dword [eax]
push 6
lea edx, [esp + 0x4c]
push edx
push 0x12
push eax
call dword [ecx + 0x178]
xor ebx, ebx
movsx edi, bx
mov eax, dword [esi + edi*4 + 0xc]
test eax, eax
je 0x5206c6
mov eax, dword [0x6b8344]
mov ecx, dword [eax]
xor edx, edx
cmp byte [edi + esi + 0x18], dl
sete dl
lea edx, [edx + edx + 1]
push edx
push 1
push edi
push eax
call dword [ecx + 0x114]
mov eax, dword [0x6b8344]
mov ecx, dword [eax]
xor edx, edx
cmp byte [edi + esi + 0x18], dl
sete dl
lea edx, [edx + edx + 1]
push edx
push 2
push edi
push eax
call dword [ecx + 0x114]
mov eax, dword [0x6b8344]
mov ecx, dword [eax]
xor edx, edx
cmp byte [esi + 0x8a], dl
sete dl
inc edx
push edx
push 5
push edi
push eax
call dword [ecx + 0x114]
mov eax, dword [0x6b8344]
mov ecx, dword [eax]
xor edx, edx
cmp byte [esi + 0x8a], dl
sete dl
inc edx
push edx
push 6
push edi
push eax
call dword [ecx + 0x114]
mov eax, dword [0x6b8344]
mov ecx, dword [eax]
xor edx, edx
cmp byte [esi + 0x8a], dl
sete dl
inc edx
push edx
push 7
push edi
push eax
call dword [ecx + 0x114]
inc ebx
cmp bx, 3
jl 0x520614
mov edi, dword [esi]
test edi, edi
je 0x520969
xor ebp, ebp
movsx eax, bp
mov ebx, dword [esi + eax*4 + 0xc]
test ebx, ebx
je 0x520708
push 1
push 1
mov eax, ebx
call fcn.00445080
mov ecx, dword [ebx + 0x28]
mov eax, dword [0x6b8344]
mov edx, dword [eax]
add esp, 8
push ecx
movsx ecx, bp
push ecx
push eax
call dword [edx + 0x104]
inc ebp
cmp bp, 3
jl 0x5206d2
mov eax, dword [0x6b8344]
mov edx, dword [eax]
push 0
push eax
call dword [edx + 0x1ac]
mov eax, dword [0x6b8344]
mov ecx, dword [eax]
push 1
push 0xf
push eax
call dword [ecx + 0xe4]
mov eax, dword [0x6b8344]
mov edx, dword [eax]
push 4
push 0x19
push eax
call dword [edx + 0xe4]
movzx edx, byte [edi + 3]
mov eax, dword [0x6b8344]
mov ecx, dword [eax]
push edx
push 0x18
push eax
call dword [ecx + 0xe4]
mov eax, dword [0x6b8344]
mov ecx, dword [eax]
push 0xf
push 0xa8
push eax
call dword [ecx + 0xe4]
mov eax, dword [0x6b8344]
mov edx, dword [eax]
push 1
push 0x1b
push eax
call dword [edx + 0xe4]
mov eax, dword [0x6b8344]
mov ecx, dword [eax]
push 2
push 0x13
push eax
call dword [ecx + 0xe4]
mov eax, dword [0x6b8344]
mov edx, dword [eax]
push 2
push 0x14
push eax
call dword [edx + 0xe4]
mov eax, dword [0x6b8344]
mov ecx, dword [eax]
push 1
push 0xab
push eax
call dword [ecx + 0xe4]
mov ecx, dword [edi]
mov eax, dword [0x6b8344]
mov edx, dword [eax]
push ecx
push 0x3c
push eax
call dword [edx + 0xe4]
mov eax, dword [0x6b8344]
mov edx, dword [eax]
push 4
push 1
push 0
push eax
call dword [edx + 0x10c]
mov eax, dword [0x6b8344]
mov ecx, dword [eax]
push 2
push 2
push 0
push eax
call dword [ecx + 0x10c]
mov eax, dword [0x6b8344]
mov edx, dword [eax]
push 3
push 3
push 0
push eax
call dword [edx + 0x10c]
mov eax, dword [0x6b8344]
mov ecx, dword [eax]
push 2
push 4
push 0
push eax
call dword [ecx + 0x10c]
mov eax, dword [0x6b8344]
mov edx, dword [eax]
push 2
push 5
push 0
push eax
call dword [edx + 0x10c]
mov eax, dword [0x6b8344]
mov ecx, dword [eax]
push 1
push 1
push 1
push eax
call dword [ecx + 0x10c]
mov eax, dword [0x6b8344]
mov edx, dword [eax]
push 1
push 4
push 1
push eax
call dword [edx + 0x10c]
mov esi, dword [esp + 0x15c]
mov eax, dword [0x6b8344]
mov ecx, dword [eax]
push 0x18
push esi
push 2
push 6
push eax
call dword [ecx + 0x14c]
mov eax, dword [0x6b8344]
mov edx, dword [eax]
push 5
push 0x19
push eax
call dword [edx + 0xe4]
mov edx, dword [edi + 8]
mov eax, dword [0x6b8344]
mov ecx, dword [eax]
push edx
push 0x3c
push eax
call dword [ecx + 0xe4]
mov eax, dword [0x6b8344]
mov ecx, dword [eax]
push 0xf
push 0xa8
push eax
call dword [ecx + 0xe4]
mov eax, dword [0x6b8344]
mov edx, dword [eax]
push 5
push 1
push 0
push eax
call dword [edx + 0x10c]
mov eax, dword [0x6b8344]
mov ecx, dword [eax]
push 2
push 2
push 0
push eax
call dword [ecx + 0x10c]
mov eax, dword [0x6b8344]
mov edx, dword [eax]
push 3
push 3
push 0
push eax
call dword [edx + 0x10c]
mov eax, dword [0x6b8344]
mov ecx, dword [eax]
push 2
push 4
push 0
push eax
call dword [ecx + 0x10c]
mov eax, dword [0x6b8344]
mov edx, dword [eax]
push 2
push 5
push 0
push eax
call dword [edx + 0x10c]
mov eax, dword [0x6b8344]
mov ecx, dword [eax]
push 1
push 1
push 1
push eax
call dword [ecx + 0x10c]
mov eax, dword [0x6b8344]
mov edx, dword [eax]
push 1
push 4
push 1
push eax
call dword [edx + 0x10c]
mov eax, dword [0x6b8344]
mov ecx, dword [eax]
push 0x18
push esi
push 2
push 6
push eax
call dword [ecx + 0x14c]
movzx ecx, byte [0x637d48]
mov eax, dword [0x6b8344]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x134]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x148
ret
mov eax, dword [esi + 0xc]
test eax, eax
je 0x520d3d
mov eax, dword [esi + 0x58]
test eax, eax
mov ebx, 0x30
jne 0x520985
mov eax, dword [0x6220c4]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0x1c], edx
mov edx, dword [eax + 8]
mov eax, dword [esi + 0x78]
test eax, eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
je 0x5209a8
mov eax, dword [eax]
mov dword [esp + 0x18], eax
jmp 0x5209b0
mov dword [esp + 0x18], 0x3f800000
mov eax, dword [0x6b8344]
mov ecx, dword [eax]
push 3
push 1
push 0
push eax
call dword [ecx + 0x114]
mov eax, dword [0x6b8344]
mov edx, dword [eax]
push 3
push 2
push 0
push eax
call dword [edx + 0x114]
mov edx, dword [esi + 0x10]
test edx, edx
jne 0x520bb1
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x520bb1
fld dword [esp + 0x1c]
mov edi, dword [0x6b8344]
fmul dword [0x6122c0]
mov ebx, dword [edi]
call fcn.005de054
fld dword [esp + 0x18]
fmul dword [0x6122c0]
mov ebp, eax
and ebp, 0xff
call fcn.005de054
fld dword [esp + 0x20]
fmul dword [0x6122c0]
shl eax, 8
or ebp, eax
shl ebp, 8
call fcn.005de054
fld dword [esp + 0x24]
fmul dword [0x6122c0]
and eax, 0xff
or ebp, eax
shl ebp, 8
call fcn.005de054
and eax, 0xff
or ebp, eax
push ebp
push 0x3c
push edi
call dword [ebx + 0xe4]
mov esi, dword [esi + 0xc]
push 0
call fcn.0051c0e0
mov eax, dword [0x6b8344]
mov ecx, dword [eax]
add esp, 4
push 0
push 0xf
push eax
call dword [ecx + 0xe4]
mov eax, dword [0x6b8344]
mov edx, dword [eax]
push 4
push 1
push 0
push eax
call dword [edx + 0x10c]
mov eax, dword [0x6b8344]
mov ecx, dword [eax]
push 2
push 2
push 0
push eax
call dword [ecx + 0x10c]
mov eax, dword [0x6b8344]
mov edx, dword [eax]
push 3
push 3
push 0
push eax
call dword [edx + 0x10c]
mov eax, dword [0x6b8344]
mov ecx, dword [eax]
push 4
push 4
push 0
push eax
call dword [ecx + 0x10c]
mov eax, dword [0x6b8344]
mov edx, dword [eax]
push 2
push 5
push 0
push eax
call dword [edx + 0x10c]
mov eax, dword [0x6b8344]
mov ecx, dword [eax]
push 0
push 6
push 0
push eax
call dword [ecx + 0x10c]
mov eax, dword [0x6b8344]
mov edx, dword [eax]
push 4
push 1
push 1
push eax
call dword [edx + 0x10c]
mov eax, dword [0x6b8344]
mov ecx, dword [eax]
push 1
push 2
push 1
push eax
call dword [ecx + 0x10c]
mov eax, dword [0x6b8344]
mov edx, dword [eax]
push 0
push 3
push 1
push eax
call dword [edx + 0x10c]
mov eax, dword [0x6b8344]
mov ecx, dword [eax]
push 2
push 4
push 1
push eax
call dword [ecx + 0x10c]
mov eax, dword [0x6b8344]
mov edx, dword [eax]
push 1
push 5
push 1
push eax
call dword [edx + 0x10c]
mov eax, dword [0x6b8344]
mov ecx, dword [eax]
push 1
push 1
push 2
push eax
call dword [ecx + 0x10c]
mov eax, dword [0x6b8344]
mov edx, dword [eax]
push 1
push 4
push 2
push eax
call dword [edx + 0x10c]
mov eax, dword [0x6b8344]
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x1ac]
mov ecx, dword [esp + 0x15c]
mov eax, dword [0x6b8344]
mov edx, dword [eax]
push 0x18
push ecx
push 2
push 6
push eax
call dword [edx + 0x14c]
jmp 0x520948
cmp dword [0x75c0ac], 0xffff0101
jb 0x520948
mov ecx, dword [esi + 0x5c]
test ecx, ecx
mov edi, dword [0x6220c4]
jne 0x520bd0
mov ecx, edi
mov eax, dword [ecx]
mov dword [esp + 0x2c], eax
mov eax, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x34], ecx
mov ecx, dword [esi + 0x7c]
test ecx, ecx
mov dword [esp + 0x30], eax
je 0x520bef
fld dword [ecx]
jmp 0x520bf5
fld dword [0x612224]
mov eax, dword [esi + 0x60]
test eax, eax
jne 0x520bfe
mov eax, edi
mov ecx, dword [eax]
mov dword [esp + 0x3c], ecx
mov ecx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0x80]
test eax, eax
mov dword [esp + 0x40], ecx
je 0x520c20
fld dword [eax]
jmp 0x520c26
fld dword [0x612224]
test edx, edx
fxch st(1)
mov ecx, dword [esp + 0x1c]
fstp dword [esp + 0x114]
mov eax, dword [esp + 0x20]
mov dword [esp + 0xf8], ecx
fstp dword [esp + 0x124]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0xfc], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x100], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x108], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x10c], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x110], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x118], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x11c], ecx
mov ecx, dword [esi + 0x68]
mov dword [esp + 0x120], eax
mov eax, dword [esi + 0x6c]
mov dword [esp + 0x128], ecx
mov ecx, dword [esi + 0x70]
mov dword [esp + 0x12c], eax
mov eax, dword [esi + 0x64]
mov dword [esp + 0x130], ecx
mov dword [esp + 0x134], eax
je case.default.0x520cdd
movsx eax, word [esi + 0x84]
dec eax
cmp eax, 4
ja case.default.0x520cdd
jmp dword [eax*4 + 0x520eb4]
mov ebx, 0x35
jmp case.default.0x520cdd
mov ebx, 0x3a
jmp case.default.0x520cdd
mov ebx, 0x3f
jmp case.default.0x520cdd
mov ebx, 0x44
jmp case.default.0x520cdd
xor ebx, ebx
mov eax, dword [esi + 0x14]
test eax, eax
je case.default.0x520d16
movsx eax, word [esi + 0x86]
dec eax
cmp eax, 3
ja case.default.0x520d16
jmp dword [eax*4 + 0x520ec8]
inc ebx
jmp case.default.0x520d16
add ebx, 2
jmp case.default.0x520d16
add ebx, 3
jmp case.default.0x520d16
add ebx, 4
movsx ebp, bx
shl ebp, 4
add ebp, 0x638ad8
mov dword [esp + 0x14], ebp
cmp dword [0x75c0ac], 0xffff0101
jae 0x520dcd
fld dword [esp + 0xf8]
mov esi, dword [0x6b8344]
fmul dword [0x6122c0]
mov edi, dword [esi]
call fcn.005de054
fld dword [esp + 0x104]
fmul dword [0x6122c0]
mov ebx, eax
and ebx, 0xff
call fcn.005de054
fld dword [esp + 0xfc]
fmul dword [0x6122c0]
shl eax, 8
or ebx, eax
shl ebx, 8
call fcn.005de054
fld dword [esp + 0x100]
fmul dword [0x6122c0]
and eax, 0xff
or ebx, eax
shl ebx, 8
call fcn.005de054
and eax, 0xff
or ebx, eax
push ebx
push 0x3c
push esi
call dword [edi + 0xe4]
jmp 0x520e77
test ebp, ebp
je 0x520e93
cmp dword [ebp], 0
je 0x520e93
xor ebx, ebx
movsx ebp, bx
mov edi, dword [esi + ebp*4 + 0xc]
test edi, edi
je 0x520e14
push 1
push 1
mov eax, edi
call fcn.00445080
mov edx, dword [edi + 0x28]
mov eax, dword [0x6b8344]
mov ecx, dword [eax]
add esp, 8
push edx
push ebp
push eax
call dword [ecx + 0x104]
inc ebx
cmp bx, 3
jl 0x520de1
mov edx, dword [esp + 0x14]
mov edx, dword [edx]
mov edx, dword [edx + 0x84]
mov edx, dword [edx + 0x80]
mov eax, dword [0x6b8344]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x1ac]
mov eax, dword [0x6b8344]
mov ecx, dword [eax]
push 1
push 1
push 0
push eax
call dword [ecx + 0x10c]
mov eax, dword [0x6b8344]
mov edx, dword [eax]
push 1
push 4
push 0
push eax
call dword [edx + 0x10c]
mov eax, dword [0x6b8344]
mov ecx, dword [eax]
push 6
lea edx, [esp + 0xfc]
push edx
push 0
push eax
call dword [ecx + 0x1b4]
mov edx, dword [esp + 0x15c]
mov eax, dword [0x6b8344]
mov ecx, dword [eax]
push 0x18
push edx
push 2
push 6
push eax
call dword [ecx + 0x14c]
movzx edx, byte [0x637d48]
mov eax, dword [0x6b8344]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x134]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x148
ret