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

Disassembly:
sub esp, 0x14c
push esi
mov esi, eax
mov al, byte [0x689402]
test al, al
mov byte [esp + 7], 1
je 0x51d7e4
cmp word [0x7c0dc0], 1
jne 0x51d7e4
mov eax, dword [0x71d09c]
mov ecx, dword [eax]
push ebx
push 1
push 0x16
xor ebx, ebx
push eax
mov dword [esp + 0x1c], ebx
call dword [ecx + 0xe4]
mov eax, dword [0x71d09c]
mov edx, dword [eax]
push 7
push 0xa8
push eax
call dword [edx + 0xe4]
mov eax, dword [0x71d09c]
mov ecx, dword [eax]
push 1
push 0x1b
push eax
call dword [ecx + 0xe4]
mov eax, dword [0x71d09c]
mov edx, dword [eax]
push 1
push 0xf
push eax
call dword [edx + 0xe4]
mov eax, dword [0x71d09c]
mov ecx, dword [eax]
push 1
push 0x18
push eax
call dword [ecx + 0xe4]
mov eax, dword [0x71d09c]
mov edx, dword [eax]
push ebx
push 7
push eax
call dword [edx + 0xe4]
mov eax, dword [0x71d09c]
mov ecx, dword [eax]
push ebx
push 0x1c
push eax
call dword [ecx + 0xe4]
mov cx, word [esi + 0x88]
call fcn.00518780
mov ecx, dword [0x6e1a18]
mov eax, dword [0x71d09c]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x15c]
test eax, eax
jge 0x51cbe8
mov byte [esp + 0xb], bl
mov cl, byte [0x69c690]
mov eax, dword [0x71d09c]
mov edx, dword [eax]
neg cl
push ebp
mov ebp, dword [0x6e1a20]
sbb ecx, ecx
and ecx, 0x10
or ecx, ebp
and ecx, 0x10
push ecx
push eax
call dword [edx + 0x134]
test eax, eax
jge 0x51cc19
mov byte [esp + 0xf], 0
mov ecx, dword [0x69e480]
mov eax, dword [0x71d09c]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x170]
test eax, eax
jge 0x51cc37
mov byte [esp + 0xf], 0
mov ax, word [0x7c0dfa]
mov ecx, dword [0x7c0df8]
mov ebp, dword [0x7c0df4]
mov edx, dword [esi + 4]
sub ax, word [0x7c0df6]
sub ecx, ebp
test edx, edx
je 0x51cc63
fld dword [edx]
fmul dword [0x673214]
jmp 0x51cc69
fld dword [0x672af8]
test edx, edx
je 0x51cc78
fld dword [edx + 4]
fmul dword [0x673210]
jmp 0x51cc7e
fld dword [0x672af8]
movsx edx, ax
mov dword [esp + 0x10], edx
movsx eax, cx
fild dword [esp + 0x10]
mov dword [esp + 0x10], eax
fdivr dword [0x672afc]
mov eax, dword [esi + 0x48]
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 [0x672afc]
fsubr st(2)
fstp dword [esp + 0xb4]
fild dword [esp + 0x10]
fdivr dword [0x672afc]
fadd st(1)
fadd dword [0x672afc]
fstp dword [esp + 0xc4]
fstp st(0)
fstp st(0)
jne 0x51ce0e
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0x3f800000
mov al, byte [esi + 9]
test al, al
mov dword [esp + 0x60], 0x3f800000
jne 0x51ce18
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0x3f800000
mov al, byte [esi + 0xa]
test al, al
mov dword [esp + 0x68], 0x3f800000
jne 0x51ce22
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0x3f800000
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x51ce2c
mov ecx, dword [eax]
mov dword [esp + 0x70], ecx
jmp 0x51ce34
mov dword [esp + 0x5c], 0
jmp 0x51cdc1
mov dword [esp + 0x64], 0
jmp 0x51cde0
mov dword [esp + 0x6c], 0
jmp 0x51cdff
mov dword [esp + 0x70], 0
test eax, eax
je 0x51ce41
mov edx, dword [eax + 4]
mov dword [esp + 0x74], edx
jmp 0x51ce49
mov dword [esp + 0x74], 0
mov eax, dword [esi + 0x20]
test eax, eax
je 0x51ce58
mov ecx, dword [eax]
mov dword [esp + 0x78], ecx
jmp 0x51ce60
mov dword [esp + 0x78], 0
test eax, eax
je 0x51ce6d
mov edx, dword [eax + 4]
mov dword [esp + 0x7c], edx
jmp 0x51ce75
mov dword [esp + 0x7c], 0
mov eax, dword [esi + 0x24]
test eax, eax
je 0x51ce87
mov ecx, dword [eax]
mov dword [esp + 0x80], ecx
jmp 0x51ce92
mov dword [esp + 0x80], 0
test eax, eax
je 0x51cea2
mov edx, dword [eax + 4]
mov dword [esp + 0x84], edx
jmp 0x51cead
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 [0x71d09c]
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 0x51cf22
mov byte [esp + 0xf], 0
mov eax, dword [0x71d09c]
mov ecx, dword [eax]
push 6
lea edx, [esp + 0x4c]
push edx
push 0x12
push eax
call dword [ecx + 0x178]
test eax, eax
jge 0x51cf42
mov byte [esp + 0xf], 0
xor ebp, ebp
push edi
movsx edi, bp
mov eax, dword [esi + edi*4 + 0xc]
test eax, eax
je 0x51cff7
mov eax, dword [0x71d09c]
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 [0x71d09c]
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 [0x71d09c]
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 [0x71d09c]
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 [0x71d09c]
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 0x51cf45
mov edi, dword [esi]
test edi, edi
je 0x51d29a
xor ebx, ebx
movsx eax, bx
mov ebp, dword [esi + eax*4 + 0xc]
test ebp, ebp
je 0x51d039
push 1
push 1
mov eax, ebp
call fcn.00444670
mov ecx, dword [ebp + 0x28]
mov eax, dword [0x71d09c]
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 0x51d003
mov eax, dword [0x71d09c]
mov edx, dword [eax]
push 0
push eax
call dword [edx + 0x1ac]
mov eax, dword [0x71d09c]
mov ecx, dword [eax]
push 1
push 0xf
push eax
call dword [ecx + 0xe4]
mov eax, dword [0x71d09c]
mov edx, dword [eax]
push 4
push 0x19
push eax
call dword [edx + 0xe4]
movzx edx, byte [edi + 3]
mov eax, dword [0x71d09c]
mov ecx, dword [eax]
push edx
push 0x18
push eax
call dword [ecx + 0xe4]
mov eax, dword [0x71d09c]
mov ecx, dword [eax]
push 0xf
push 0xa8
push eax
call dword [ecx + 0xe4]
mov eax, dword [0x71d09c]
mov edx, dword [eax]
push 1
push 0x1b
push eax
call dword [edx + 0xe4]
mov eax, dword [0x71d09c]
mov ecx, dword [eax]
push 2
push 0x13
push eax
call dword [ecx + 0xe4]
mov eax, dword [0x71d09c]
mov edx, dword [eax]
push 2
push 0x14
push eax
call dword [edx + 0xe4]
mov eax, dword [0x71d09c]
mov ecx, dword [eax]
push 1
push 0xab
push eax
call dword [ecx + 0xe4]
mov ecx, dword [edi]
mov eax, dword [0x71d09c]
mov edx, dword [eax]
push ecx
push 0x3c
push eax
call dword [edx + 0xe4]
mov eax, dword [0x71d09c]
mov edx, dword [eax]
push 4
push 1
push 0
push eax
call dword [edx + 0x10c]
mov eax, dword [0x71d09c]
mov ecx, dword [eax]
push 2
push 2
push 0
push eax
call dword [ecx + 0x10c]
mov eax, dword [0x71d09c]
mov edx, dword [eax]
push 3
push 3
push 0
push eax
call dword [edx + 0x10c]
mov eax, dword [0x71d09c]
mov ecx, dword [eax]
push 2
push 4
push 0
push eax
call dword [ecx + 0x10c]
mov eax, dword [0x71d09c]
mov edx, dword [eax]
push 2
push 5
push 0
push eax
call dword [edx + 0x10c]
mov eax, dword [0x71d09c]
mov ecx, dword [eax]
push 1
push 1
push 1
push eax
call dword [ecx + 0x10c]
mov eax, dword [0x71d09c]
mov edx, dword [eax]
push 1
push 4
push 1
push eax
call dword [edx + 0x10c]
mov esi, dword [esp + 0x160]
mov eax, dword [0x71d09c]
mov ecx, dword [eax]
push 0x18
push esi
push 2
push 6
push eax
call dword [ecx + 0x14c]
mov eax, dword [0x71d09c]
mov edx, dword [eax]
push 5
push 0x19
push eax
call dword [edx + 0xe4]
mov edx, dword [edi + 8]
mov eax, dword [0x71d09c]
mov ecx, dword [eax]
push edx
push 0x3c
push eax
call dword [ecx + 0xe4]
mov eax, dword [0x71d09c]
mov ecx, dword [eax]
push 0xf
push 0xa8
push eax
call dword [ecx + 0xe4]
mov eax, dword [0x71d09c]
mov edx, dword [eax]
push 5
push 1
push 0
push eax
call dword [edx + 0x10c]
mov eax, dword [0x71d09c]
mov ecx, dword [eax]
push 2
push 2
push 0
push eax
call dword [ecx + 0x10c]
mov eax, dword [0x71d09c]
mov edx, dword [eax]
push 3
push 3
push 0
push eax
call dword [edx + 0x10c]
mov eax, dword [0x71d09c]
mov ecx, dword [eax]
push 2
push 4
push 0
push eax
call dword [ecx + 0x10c]
mov eax, dword [0x71d09c]
mov edx, dword [eax]
push 2
push 5
push 0
push eax
call dword [edx + 0x10c]
mov eax, dword [0x71d09c]
mov ecx, dword [eax]
push 1
push 1
push 1
push eax
call dword [ecx + 0x10c]
mov eax, dword [0x71d09c]
mov edx, dword [eax]
push 1
push 4
push 1
push eax
call dword [edx + 0x10c]
mov eax, dword [0x71d09c]
mov ecx, dword [eax]
push 0x18
push esi
push 2
push 6
push eax
call dword [ecx + 0x14c]
movzx ecx, byte [0x69c690]
mov eax, dword [0x71d09c]
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 0x51d66e
mov eax, dword [esi + 0x58]
test eax, eax
mov ebp, 0x31
jne 0x51d2b6
mov eax, dword [0x686b04]
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 0x51d2d9
mov eax, dword [eax]
mov dword [esp + 0x1c], eax
jmp 0x51d2e1
mov dword [esp + 0x1c], 0x3f800000
mov eax, dword [0x71d09c]
mov ecx, dword [eax]
push 3
push 1
push 0
push eax
call dword [ecx + 0x114]
mov eax, dword [0x71d09c]
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 0x51d4e2
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x51d4e2
fld dword [esp + 0x20]
mov edi, dword [0x71d09c]
fmul dword [0x672b98]
mov ebx, dword [edi]
call fcn.006392c4
fld dword [esp + 0x1c]
fmul dword [0x672b98]
mov ebp, eax
and ebp, 0xff
call fcn.006392c4
fld dword [esp + 0x24]
fmul dword [0x672b98]
shl eax, 8
or ebp, eax
shl ebp, 8
call fcn.006392c4
fld dword [esp + 0x28]
fmul dword [0x672b98]
and eax, 0xff
or ebp, eax
shl ebp, 8
call fcn.006392c4
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.00518830
mov eax, dword [0x71d09c]
mov ecx, dword [eax]
add esp, 4
push 0
push 0xf
push eax
call dword [ecx + 0xe4]
mov eax, dword [0x71d09c]
mov edx, dword [eax]
push 4
push 1
push 0
push eax
call dword [edx + 0x10c]
mov eax, dword [0x71d09c]
mov ecx, dword [eax]
push 2
push 2
push 0
push eax
call dword [ecx + 0x10c]
mov eax, dword [0x71d09c]
mov edx, dword [eax]
push 3
push 3
push 0
push eax
call dword [edx + 0x10c]
mov eax, dword [0x71d09c]
mov ecx, dword [eax]
push 4
push 4
push 0
push eax
call dword [ecx + 0x10c]
mov eax, dword [0x71d09c]
mov edx, dword [eax]
push 2
push 5
push 0
push eax
call dword [edx + 0x10c]
mov eax, dword [0x71d09c]
mov ecx, dword [eax]
push 0
push 6
push 0
push eax
call dword [ecx + 0x10c]
mov eax, dword [0x71d09c]
mov edx, dword [eax]
push 4
push 1
push 1
push eax
call dword [edx + 0x10c]
mov eax, dword [0x71d09c]
mov ecx, dword [eax]
push 1
push 2
push 1
push eax
call dword [ecx + 0x10c]
mov eax, dword [0x71d09c]
mov edx, dword [eax]
push 0
push 3
push 1
push eax
call dword [edx + 0x10c]
mov eax, dword [0x71d09c]
mov ecx, dword [eax]
push 2
push 4
push 1
push eax
call dword [ecx + 0x10c]
mov eax, dword [0x71d09c]
mov edx, dword [eax]
push 1
push 5
push 1
push eax
call dword [edx + 0x10c]
mov eax, dword [0x71d09c]
mov ecx, dword [eax]
push 1
push 1
push 2
push eax
call dword [ecx + 0x10c]
mov eax, dword [0x71d09c]
mov edx, dword [eax]
push 1
push 4
push 2
push eax
call dword [edx + 0x10c]
mov eax, dword [0x71d09c]
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x1ac]
mov ecx, dword [esp + 0x160]
mov eax, dword [0x71d09c]
mov edx, dword [eax]
push 0x18
push ecx
push 2
push 6
push eax
call dword [edx + 0x14c]
jmp 0x51d279
cmp dword [0x7c0d2c], 0xffff0101
jb 0x51d279
mov ecx, dword [esi + 0x5c]
test ecx, ecx
mov edi, dword [0x686b04]
jne 0x51d501
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 0x51d520
fld dword [ecx]
jmp 0x51d526
fld dword [0x672afc]
mov eax, dword [esi + 0x60]
test eax, eax
jne 0x51d52f
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 0x51d551
fld dword [eax]
jmp 0x51d557
fld dword [0x672afc]
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.0x51d60e
movsx eax, word [esi + 0x84]
dec eax
cmp eax, 4
ja case.default.0x51d60e
jmp dword [eax*4 + 0x51d7ec]
mov ebp, 0x36
jmp case.default.0x51d60e
mov ebp, 0x3b
jmp case.default.0x51d60e
mov ebp, 0x40
jmp case.default.0x51d60e
mov ebp, 0x45
jmp case.default.0x51d60e
xor ebp, ebp
mov eax, dword [esi + 0x14]
test eax, eax
je case.default.0x51d647
movsx eax, word [esi + 0x86]
dec eax
cmp eax, 3
ja case.default.0x51d647
jmp dword [eax*4 + 0x51d800]
inc ebp
jmp case.default.0x51d647
add ebp, 2
jmp case.default.0x51d647
add ebp, 3
jmp case.default.0x51d647
add ebp, 4
movsx ebx, bp
shl ebx, 5
add ebx, 0x69d420
mov dword [esp + 0x18], ebx
mov al, byte [esp + 0x13]
test al, al
je 0x51d7cb
test ebx, ebx
je 0x51d7cb
cmp dword [ebx], 0
je 0x51d7cb
xor ebp, ebp
lea ecx, [ecx]
movsx ebx, bp
mov edi, dword [esi + ebx*4 + 0xc]
test edi, edi
je 0x51d6c8
push 1
push 1
mov eax, edi
call fcn.00444670
mov ecx, dword [esp + 0x20]
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 0x51d690
cmp dword [0x7c0d2c], 0xffff0101
jae 0x51d755
fld dword [esp + 0xfc]
mov esi, dword [0x71d09c]
fmul dword [0x672b98]
mov edi, dword [esi]
call fcn.006392c4
fld dword [esp + 0x108]
fmul dword [0x672b98]
mov ebx, eax
and ebx, 0xff
call fcn.006392c4
fld dword [esp + 0x100]
fmul dword [0x672b98]
shl eax, 8
or ebx, eax
shl ebx, 8
call fcn.006392c4
fld dword [esp + 0x104]
fmul dword [0x672b98]
and eax, 0xff
or ebx, eax
shl ebx, 8
call fcn.006392c4
and eax, 0xff
or ebx, eax
push ebx
push 0x3c
push esi
call dword [edi + 0xe4]
jmp 0x51d76f
mov eax, dword [0x71d09c]
mov edx, dword [eax]
push 6
lea ecx, [esp + 0x100]
push ecx
push 0
push eax
call dword [edx + 0x1b4]
mov edi, dword [esp + 0x18]
mov eax, dword [edi]
mov edx, dword [eax]
push 3
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [edx + 0x100]
mov eax, dword [esp + 0x14]
xor esi, esi
test eax, eax
jbe 0x51d7c0
mov ebx, dword [esp + 0x160]
mov eax, dword [edi]
mov edx, dword [eax]
push esi
push eax
call dword [edx + 0x104]
mov eax, dword [0x71d09c]
mov ecx, dword [eax]
push 0x18
push ebx
push 2
push 6
push eax
call dword [ecx + 0x14c]
mov eax, dword [esp + 0x14]
inc esi
cmp esi, eax
jb 0x51d796
mov edi, dword [edi]
mov edx, dword [edi]
push edi
call dword [edx + 0x108]
movzx edx, byte [0x69c690]
mov eax, dword [0x71d09c]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x134]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x14c
ret