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

Disassembly:
sub esp, 0x14c
push esi
mov esi, eax
mov al, byte [0x68332a]
test al, al
mov byte [esp + 7], 1
je 0x519104
cmp word [0x7b2aa0], 1
jne 0x519104
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push ebx
push 1
push 0x16
xor ebx, ebx
push eax
mov dword [esp + 0x18], ebx
call dword [ecx + 0xe4]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 7
push 0xa8
push eax
call dword [edx + 0xe4]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 1
push 0x1b
push eax
call dword [ecx + 0xe4]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 1
push 0xf
push eax
call dword [edx + 0xe4]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 1
push 0x18
push eax
call dword [ecx + 0xe4]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push ebx
push 7
push eax
call dword [edx + 0xe4]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push ebx
push 0x1c
push eax
call dword [ecx + 0xe4]
mov cx, word [esi + 0x88]
call fcn.005140e0
mov ecx, dword [0x6db190]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x15c]
test eax, eax
jge 0x518548
mov byte [esp + 0xb], bl
mov cl, byte [0x695f30]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
neg cl
push ebp
mov ebp, dword [0x6db198]
sbb ecx, ecx
and ecx, 0x10
or ecx, ebp
and ecx, 0x10
push ecx
push eax
call dword [edx + 0x134]
test eax, eax
jge 0x518579
mov byte [esp + 0xf], 0
mov ecx, dword [0x697d20]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x170]
test eax, eax
jge 0x518597
mov byte [esp + 0xf], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x5185a8
fld dword [eax]
fmul dword [0x66cb2c]
jmp 0x5185ae
fld dword [0x66c40c]
test eax, eax
je 0x5185bd
fld dword [eax + 4]
fmul dword [0x66cb28]
jmp 0x5185c3
fld dword [0x66c40c]
mov eax, dword [esi + 0x44]
fxch st(1)
fsub dword [0x66cb20]
mov edx, dword [esi + 0x40]
mov ecx, dword [esi + 0x48]
mov dword [esp + 0xec], eax
mov eax, dword [esi + 0x50]
fstp dword [esp + 0xb4]
mov dword [esp + 0x50], eax
fadd dword [0x66cb24]
mov al, byte [esi + 8]
test al, al
mov dword [esp + 0xe8], edx
mov edx, dword [esi + 0x4c]
fstp dword [esp + 0xc4]
mov dword [esp + 0x48], ecx
mov ecx, dword [esi + 0x54]
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], edx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], 0x3f800000
jne 0x51872b
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0x3f800000
mov al, byte [esi + 9]
test al, al
mov dword [esp + 0x60], 0x3f800000
jne 0x518735
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0x3f800000
mov al, byte [esi + 0xa]
test al, al
mov dword [esp + 0x68], 0x3f800000
jne 0x51873f
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0x3f800000
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x518749
mov edx, dword [eax]
mov dword [esp + 0x70], edx
jmp 0x518751
mov dword [esp + 0x5c], 0
jmp 0x5186de
mov dword [esp + 0x64], 0
jmp 0x5186fd
mov dword [esp + 0x6c], 0
jmp 0x51871c
mov dword [esp + 0x70], 0
test eax, eax
je 0x51875e
mov eax, dword [eax + 4]
mov dword [esp + 0x74], eax
jmp 0x518766
mov dword [esp + 0x74], 0
mov eax, dword [esi + 0x20]
test eax, eax
je 0x518775
mov ecx, dword [eax]
mov dword [esp + 0x78], ecx
jmp 0x51877d
mov dword [esp + 0x78], 0
test eax, eax
je 0x51878a
mov edx, dword [eax + 4]
mov dword [esp + 0x7c], edx
jmp 0x518792
mov dword [esp + 0x7c], 0
mov eax, dword [esi + 0x24]
test eax, eax
je 0x5187a4
mov ecx, dword [eax]
mov dword [esp + 0x80], ecx
jmp 0x5187af
mov dword [esp + 0x80], 0
test eax, eax
je 0x5187bf
mov edx, dword [eax + 4]
mov dword [esp + 0x84], edx
jmp 0x5187ca
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 [0x70eda0]
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]
test eax, eax
jge 0x51883f
mov byte [esp + 0xf], 0
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 6
lea edx, [esp + 0x4c]
push edx
push 0x12
push eax
call dword [ecx + 0x178]
test eax, eax
jge 0x51885f
mov byte [esp + 0xf], 0
xor ebp, ebp
push edi
movsx edi, bp
mov eax, dword [esi + edi*4 + 0xc]
test eax, eax
je 0x518914
mov eax, dword [0x70eda0]
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 [0x70eda0]
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 [0x70eda0]
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 [0x70eda0]
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 [0x70eda0]
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 ebp
cmp bp, 3
jl 0x518862
mov edi, dword [esi]
test edi, edi
je 0x518bb7
xor ebx, ebx
movsx eax, bx
mov ebp, dword [esi + eax*4 + 0xc]
test ebp, ebp
je 0x518956
push 1
push 1
mov eax, ebp
call fcn.00444690
mov ecx, dword [ebp + 0x28]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
add esp, 8
push ecx
movsx ecx, bx
push ecx
push eax
call dword [edx + 0x104]
inc ebx
cmp bx, 3
jl 0x518920
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 0
push eax
call dword [edx + 0x1ac]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 1
push 0xf
push eax
call dword [ecx + 0xe4]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 4
push 0x19
push eax
call dword [edx + 0xe4]
movzx edx, byte [edi + 3]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push edx
push 0x18
push eax
call dword [ecx + 0xe4]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 0xf
push 0xa8
push eax
call dword [ecx + 0xe4]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 1
push 0x1b
push eax
call dword [edx + 0xe4]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 2
push 0x13
push eax
call dword [ecx + 0xe4]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 2
push 0x14
push eax
call dword [edx + 0xe4]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 1
push 0xab
push eax
call dword [ecx + 0xe4]
mov ecx, dword [edi]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push ecx
push 0x3c
push eax
call dword [edx + 0xe4]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 4
push 1
push 0
push eax
call dword [edx + 0x10c]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 2
push 2
push 0
push eax
call dword [ecx + 0x10c]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 3
push 3
push 0
push eax
call dword [edx + 0x10c]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 2
push 4
push 0
push eax
call dword [ecx + 0x10c]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 2
push 5
push 0
push eax
call dword [edx + 0x10c]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 1
push 1
push 1
push eax
call dword [ecx + 0x10c]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 1
push 4
push 1
push eax
call dword [edx + 0x10c]
mov esi, dword [esp + 0x160]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 0x18
push esi
push 2
push 6
push eax
call dword [ecx + 0x14c]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 5
push 0x19
push eax
call dword [edx + 0xe4]
mov edx, dword [edi + 8]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push edx
push 0x3c
push eax
call dword [ecx + 0xe4]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 0xf
push 0xa8
push eax
call dword [ecx + 0xe4]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 5
push 1
push 0
push eax
call dword [edx + 0x10c]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 2
push 2
push 0
push eax
call dword [ecx + 0x10c]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 3
push 3
push 0
push eax
call dword [edx + 0x10c]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 2
push 4
push 0
push eax
call dword [ecx + 0x10c]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 2
push 5
push 0
push eax
call dword [edx + 0x10c]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 1
push 1
push 1
push eax
call dword [ecx + 0x10c]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 1
push 4
push 1
push eax
call dword [edx + 0x10c]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 0x18
push esi
push 2
push 6
push eax
call dword [ecx + 0x14c]
movzx ecx, byte [0x695f30]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x134]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x14c
ret
mov eax, dword [esi + 0xc]
test eax, eax
je 0x518f8b
mov eax, dword [esi + 0x58]
test eax, eax
mov ebp, 0x31
jne 0x518bd3
mov eax, dword [0x680af4]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0x20], edx
mov edx, dword [eax + 8]
mov eax, dword [esi + 0x78]
test eax, eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
je 0x518bf6
mov eax, dword [eax]
mov dword [esp + 0x1c], eax
jmp 0x518bfe
mov dword [esp + 0x1c], 0x3f800000
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 3
push 1
push 0
push eax
call dword [ecx + 0x114]
mov eax, dword [0x70eda0]
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 0x518dff
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x518dff
fld dword [esp + 0x20]
mov edi, dword [0x70eda0]
fmul dword [0x66c4a8]
mov ebx, dword [edi]
call fcn.006343a4
fld dword [esp + 0x1c]
fmul dword [0x66c4a8]
mov ebp, eax
and ebp, 0xff
call fcn.006343a4
fld dword [esp + 0x24]
fmul dword [0x66c4a8]
shl eax, 8
or ebp, eax
shl ebp, 8
call fcn.006343a4
fld dword [esp + 0x28]
fmul dword [0x66c4a8]
and eax, 0xff
or ebp, eax
shl ebp, 8
call fcn.006343a4
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.00514190
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
add esp, 4
push 0
push 0xf
push eax
call dword [ecx + 0xe4]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 4
push 1
push 0
push eax
call dword [edx + 0x10c]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 2
push 2
push 0
push eax
call dword [ecx + 0x10c]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 3
push 3
push 0
push eax
call dword [edx + 0x10c]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 4
push 4
push 0
push eax
call dword [ecx + 0x10c]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 2
push 5
push 0
push eax
call dword [edx + 0x10c]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 0
push 6
push 0
push eax
call dword [ecx + 0x10c]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 4
push 1
push 1
push eax
call dword [edx + 0x10c]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 1
push 2
push 1
push eax
call dword [ecx + 0x10c]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 0
push 3
push 1
push eax
call dword [edx + 0x10c]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 2
push 4
push 1
push eax
call dword [ecx + 0x10c]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 1
push 5
push 1
push eax
call dword [edx + 0x10c]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 1
push 1
push 2
push eax
call dword [ecx + 0x10c]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 1
push 4
push 2
push eax
call dword [edx + 0x10c]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x1ac]
mov ecx, dword [esp + 0x160]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 0x18
push ecx
push 2
push 6
push eax
call dword [edx + 0x14c]
jmp 0x518b96
cmp dword [0x7b2a0c], 0xffff0101
jb 0x518b96
mov ecx, dword [esi + 0x5c]
test ecx, ecx
mov edi, dword [0x680af4]
jne 0x518e1e
mov ecx, edi
mov eax, dword [ecx]
mov dword [esp + 0x30], eax
mov eax, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x38], ecx
mov ecx, dword [esi + 0x7c]
test ecx, ecx
mov dword [esp + 0x34], eax
je 0x518e3d
fld dword [ecx]
jmp 0x518e43
fld dword [0x66c410]
mov eax, dword [esi + 0x60]
test eax, eax
jne 0x518e4c
mov eax, edi
mov ecx, dword [eax]
mov dword [esp + 0x40], ecx
mov ecx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x48], eax
mov eax, dword [esi + 0x80]
test eax, eax
mov dword [esp + 0x44], ecx
je 0x518e6e
fld dword [eax]
jmp 0x518e74
fld dword [0x66c410]
test edx, edx
fxch st(1)
mov ecx, dword [esp + 0x20]
fstp dword [esp + 0x118]
mov eax, dword [esp + 0x24]
mov dword [esp + 0xfc], ecx
fstp dword [esp + 0x128]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x104], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x10c], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x110], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x114], ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x11c], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x120], ecx
mov ecx, dword [esi + 0x68]
mov dword [esp + 0x124], eax
mov eax, dword [esi + 0x6c]
mov dword [esp + 0x12c], ecx
mov ecx, dword [esi + 0x70]
mov dword [esp + 0x130], eax
mov eax, dword [esi + 0x64]
mov dword [esp + 0x134], ecx
mov dword [esp + 0x138], eax
je case.default.0x518f2b
movsx eax, word [esi + 0x84]
dec eax
cmp eax, 4
ja case.default.0x518f2b
jmp dword [eax*4 + 0x51910c]
mov ebp, 0x36
jmp case.default.0x518f2b
mov ebp, 0x3b
jmp case.default.0x518f2b
mov ebp, 0x40
jmp case.default.0x518f2b
mov ebp, 0x45
jmp case.default.0x518f2b
xor ebp, ebp
mov eax, dword [esi + 0x14]
test eax, eax
je case.default.0x518f64
movsx eax, word [esi + 0x86]
dec eax
cmp eax, 3
ja case.default.0x518f64
jmp dword [eax*4 + 0x519120]
inc ebp
jmp case.default.0x518f64
add ebp, 2
jmp case.default.0x518f64
add ebp, 3
jmp case.default.0x518f64
add ebp, 4
movsx ebx, bp
shl ebx, 5
add ebx, 0x696cc0
mov dword [esp + 0x14], ebx
mov al, byte [esp + 0x13]
test al, al
je 0x5190eb
test ebx, ebx
je 0x5190eb
cmp dword [ebx], 0
je 0x5190eb
xor ebp, ebp
lea ebx, [ebx]
movsx ebx, bp
mov edi, dword [esi + ebx*4 + 0xc]
test edi, edi
je 0x518fe8
push 1
push 1
mov eax, edi
call fcn.00444690
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
mov edi, dword [edi + 0x28]
mov ecx, dword [ecx + ebx*4 + 8]
mov edx, dword [eax]
add esp, 8
push edi
push ecx
push eax
call dword [edx + 0xd0]
inc ebp
cmp bp, 3
jl 0x518fb0
cmp dword [0x7b2a0c], 0xffff0101
jae 0x519075
fld dword [esp + 0xfc]
mov esi, dword [0x70eda0]
fmul dword [0x66c4a8]
mov edi, dword [esi]
call fcn.006343a4
fld dword [esp + 0x108]
fmul dword [0x66c4a8]
mov ebx, eax
and ebx, 0xff
call fcn.006343a4
fld dword [esp + 0x100]
fmul dword [0x66c4a8]
shl eax, 8
or ebx, eax
shl ebx, 8
call fcn.006343a4
fld dword [esp + 0x104]
fmul dword [0x66c4a8]
and eax, 0xff
or ebx, eax
shl ebx, 8
call fcn.006343a4
and eax, 0xff
or ebx, eax
push ebx
push 0x3c
push esi
call dword [edi + 0xe4]
jmp 0x51908f
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 6
lea ecx, [esp + 0x100]
push ecx
push 0
push eax
call dword [edx + 0x1b4]
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
mov edx, dword [eax]
push 3
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [edx + 0x100]
mov eax, dword [esp + 0x18]
xor esi, esi
test eax, eax
jbe 0x5190e0
mov ebx, dword [esp + 0x160]
mov eax, dword [edi]
mov edx, dword [eax]
push esi
push eax
call dword [edx + 0x104]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 0x18
push ebx
push 2
push 6
push eax
call dword [ecx + 0x14c]
mov eax, dword [esp + 0x18]
inc esi
cmp esi, eax
jb 0x5190b6
mov edi, dword [edi]
mov edx, dword [edi]
push edi
call dword [edx + 0x108]
movzx edx, byte [0x695f30]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x134]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x14c
ret