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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5799e8
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x5b107c]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push esi
push edi
mov eax, dword [0x5b107c]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov ebx, ecx
xor edi, edi
mov dword [esp + 0x14], ebx
cmp dword [ebx + 0x10], edi
je 0x4035aa
call fcn.004239f0
lea esi, [ebx + 0x2b2]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402e28
sub eax, edx
je 0x402ea9
fld dword [ebx + 0x1e0]
call fcn.00577600
fld dword [ebx + 0x1e4]
add eax, 0x32
mov dword [esp + 0x28], eax
call fcn.00577600
add eax, 5
mov dword [esp + 0x2c], eax
mov eax, esi
mov dword [esp + 0x30], 0xfa
mov dword [esp + 0x34], 5
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402e70
sub eax, edx
mov edx, dword [ebx + 0x1dc]
imul edx, dword [ebx + 0x1d8]
mov ecx, eax
mov eax, 0x51eb851f
mul edx
shr edx, 5
shl edx, 0x18
or edx, dword [ebx + 0x1d4]
xor eax, eax
push edx
push ecx
push esi
lea esi, [esp + 0x34]
call fcn.00422dc0
movzx ecx, word [ebx + 0x2a4]
xor edx, edx
mov eax, ecx
div dword [0x67df24]
mov eax, dword [0x67df28]
mov eax, dword [eax + edx*4]
cmp eax, edi
je 0x402f7b
lea ebx, [ebx]
cmp dword [eax], ecx
je 0x402ee0
mov eax, dword [eax + 0xc]
cmp eax, edi
jne 0x402ed0
jmp 0x402f7b
cmp dword [eax + 4], edi
je 0x402f7b
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], vtable.cImage.0
mov esi, 0xb02
mov ecx, 0x67cb5c
mov dword [esp + 0x78], edi
call fcn.0056e550
cmp eax, edi
je 0x402f3b
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
mov edi, dword [eax]
mov dword [esp + 0x30], ecx
mov ecx, dword [eax + 4]
mov dword [esp + 0x2c], edx
mov edx, dword [eax + 0x10]
lea ebx, [esp + 0x28]
lea esi, [esp + 0x48]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x34], edx
call fcn.0042a9c0
mov ebx, dword [esp + 0x14]
fld1
push 0xffffffffffffffff
fst dword [esp + 0x24]
lea eax, [esp + 0x1c]
fstp dword [esp + 0x28]
push eax
fld dword [ebx + 0x1e0]
push ecx
fstp dword [esp + 0x24]
lea eax, [esp + 0x2c]
fld dword [ebx + 0x1e4]
lea esi, [esp + 0x54]
fstp dword [esp + 0x28]
fldz
fstp dword [esp]
call fcn.00425d60
mov dword [esp + 0x78], 0xffffffff
lea esi, [ebx + 0x2d3]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402f86
sub eax, edx
je 0x402feb
cmp byte [esi], 0x4e
je 0x402feb
fld dword [ebx + 0x1e0]
call fcn.00577600
fld dword [ebx + 0x1e4]
add eax, 0x32
mov dword [esp + 0x28], eax
call fcn.00577600
add eax, 0x19
mov dword [esp + 0x2c], eax
mov eax, esi
mov dword [esp + 0x30], 0xfa
mov dword [esp + 0x34], 5
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402fd0
sub eax, edx
push 0xffffff00
push eax
push esi
lea esi, [esp + 0x34]
xor eax, eax
call fcn.00422dc0
movzx eax, word [ebx + 0x2b0]
lea edi, [ebx + 0x2f4]
mov ecx, 0x67cb38
mov dword [esp + 0x20], edi
cmp eax, 3
je 0x403109
lea esi, [eax + 0xf6]
call fcn.0056e550
test eax, eax
je 0x403048
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
mov dword [esp + 0x30], ecx
mov ecx, dword [eax + 4]
mov dword [esp + 0x2c], edx
mov edx, dword [eax + 0x10]
mov esi, edi
mov edi, dword [eax]
lea ebx, [esp + 0x28]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x34], edx
call fcn.0042a9c0
mov ebx, dword [esp + 0x14]
mov edi, esi
mov ecx, edi
call fcn.004035d0
test eax, eax
jne 0x403320
fld dword [ebx + 0x1e0]
call fcn.00577600
add eax, 0xa
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fstp dword [esp + 0x18]
fld dword [ebx + 0x1e4]
call fcn.00577600
mov ecx, dword [ebx + 0x1dc]
imul ecx, dword [ebx + 0x1d8]
add eax, 0x32
mov dword [esp + 0x14], eax
mov eax, 0x51eb851f
mul ecx
fild dword [esp + 0x14]
fstp dword [esp + 0x1c]
shr edx, 5
mov esi, edx
mov edx, dword [edi + 0x10]
sub edx, dword [edi + 8]
mov eax, dword [edi + 0x14]
mov dword [esp + 0x14], edx
sub eax, dword [edi + 0xc]
shl esi, 0x18
fild dword [esp + 0x14]
mov dword [esp + 0x14], eax
or esi, 0xffffff
cmp dword [edi + 4], 0
fdiv dword [edi + 0x18]
fstp dword [esp + 0x20]
fild dword [esp + 0x14]
fdiv dword [edi + 0x1c]
fstp dword [esp + 0x24]
je 0x403320
mov eax, dword [0x65fadc]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18]
push eax
call edx
push 0x1000
push 0
push esi
lea ecx, [edi + 8]
push ecx
lea ecx, [esp + 0x28]
push ecx
push ecx
lea ecx, [esp + 0x38]
jmp 0x40330e
mov esi, 0xf8
call fcn.0056e550
test eax, eax
je 0x403148
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
mov dword [esp + 0x30], ecx
mov ecx, dword [eax + 4]
mov dword [esp + 0x2c], edx
mov edx, dword [eax + 0x10]
mov esi, edi
mov edi, dword [eax]
lea ebx, [esp + 0x28]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x34], edx
call fcn.0042a9c0
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x14]
mov ecx, edi
call fcn.004035d0
test eax, eax
jne 0x403212
fld dword [ebx + 0x1e0]
call fcn.00577600
add eax, 0xa
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fstp dword [esp + 0x38]
fld dword [ebx + 0x1e4]
call fcn.00577600
mov ecx, dword [ebx + 0x1dc]
imul ecx, dword [ebx + 0x1d8]
add eax, 0x32
mov dword [esp + 0x18], eax
mov eax, 0x51eb851f
fild dword [esp + 0x18]
mul ecx
fstp dword [esp + 0x3c]
shr edx, 5
mov esi, edx
mov edx, dword [edi + 0x10]
sub edx, dword [edi + 8]
mov eax, dword [edi + 0x14]
mov dword [esp + 0x18], edx
sub eax, dword [edi + 0xc]
fild dword [esp + 0x18]
shl esi, 0x18
mov dword [esp + 0x18], eax
or esi, 0xffffff
cmp dword [edi + 4], 0
fdiv dword [edi + 0x18]
fstp dword [esp + 0x28]
fild dword [esp + 0x18]
fdiv dword [edi + 0x1c]
fstp dword [esp + 0x2c]
je 0x403212
mov eax, dword [0x65fadc]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18]
push eax
call edx
fldz
mov edx, dword [eax]
mov edx, dword [edx + 0x3c]
push 0x1000
push 0
push esi
lea ecx, [edi + 8]
push ecx
lea ecx, [esp + 0x48]
push ecx
push ecx
fstp dword [esp]
lea ecx, [esp + 0x40]
push ecx
mov ecx, dword [edi + 4]
push ecx
push eax
call edx
mov esi, 0xf7
mov ecx, 0x67cb38
call fcn.0056e550
test eax, eax
je 0x403256
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
mov dword [esp + 0x30], ecx
mov ecx, dword [eax + 4]
mov dword [esp + 0x2c], edx
mov edx, dword [eax + 0x10]
mov esi, edi
mov edi, dword [eax]
lea ebx, [esp + 0x28]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x34], edx
call fcn.0042a9c0
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x14]
mov ecx, edi
call fcn.004035d0
test eax, eax
jne 0x403320
fld dword [ebx + 0x1e0]
call fcn.00577600
add eax, 0x6e
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fstp dword [esp + 0x28]
fld dword [ebx + 0x1e4]
call fcn.00577600
mov ecx, dword [ebx + 0x1dc]
imul ecx, dword [ebx + 0x1d8]
add eax, 0x32
mov dword [esp + 0x18], eax
mov eax, 0x51eb851f
fild dword [esp + 0x18]
mul ecx
fstp dword [esp + 0x2c]
shr edx, 5
mov esi, edx
mov edx, dword [edi + 0x10]
sub edx, dword [edi + 8]
mov eax, dword [edi + 0x14]
mov dword [esp + 0x18], edx
sub eax, dword [edi + 0xc]
fild dword [esp + 0x18]
shl esi, 0x18
mov dword [esp + 0x18], eax
or esi, 0xffffff
cmp dword [edi + 4], 0
fdiv dword [edi + 0x18]
fstp dword [esp + 0x38]
fild dword [esp + 0x18]
fdiv dword [edi + 0x1c]
fstp dword [esp + 0x3c]
je 0x403320
mov eax, dword [0x65fadc]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18]
push eax
call edx
push 0x1000
push 0
push esi
lea ecx, [edi + 8]
push ecx
lea ecx, [esp + 0x38]
push ecx
push ecx
lea ecx, [esp + 0x50]
fldz
mov edx, dword [eax]
mov edx, dword [edx + 0x3c]
fstp dword [esp]
push ecx
mov ecx, dword [edi + 4]
push ecx
push eax
call edx
cmp word [ebx + 0x2b0], 3
jne 0x403456
cmp dword [ebx + 0x2ac], 0
je 0x403456
mov esi, dword [ebx + 0x2a8]
test esi, esi
je 0x403456
fld dword [ebx + 0x1e0]
call fcn.00577600
fld dword [ebx + 0x1e4]
add eax, 0x23
mov dword [esp + 0x28], eax
call fcn.00577600
add eax, 0x34
mov dword [esp + 0x2c], eax
mov edi, 5
mov eax, esi
mov dword [esp + 0x30], 0x19
mov dword [esp + 0x34], edi
call fcn.0052c640
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403388
mov edx, dword [ebx + 0x1d8]
imul edx, dword [ebx + 0x1dc]
sub eax, esi
mov ecx, eax
mov eax, 0x51eb851f
mul edx
mov eax, dword [ebx + 0x2a8]
shr edx, 5
shl edx, 0x18
or edx, 0xffffff
push edx
push ecx
call fcn.0052c640
push eax
lea esi, [esp + 0x34]
xor eax, eax
call fcn.00422dc0
fld dword [ebx + 0x1e0]
call fcn.00577600
fld dword [ebx + 0x1e4]
add eax, 0x87
mov dword [esp + 0x38], eax
call fcn.00577600
add eax, 0x34
mov dword [esp + 0x3c], eax
mov eax, dword [ebx + 0x2ac]
mov dword [esp + 0x40], 0x19
mov dword [esp + 0x44], edi
call fcn.0052c640
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403410
mov edx, dword [ebx + 0x1d8]
imul edx, dword [ebx + 0x1dc]
sub eax, esi
mov ecx, eax
mov eax, 0x51eb851f
mul edx
mov eax, dword [ebx + 0x2ac]
shr edx, 5
shl edx, 0x18
or edx, 0xffffff
push edx
push ecx
call fcn.0052c640
push eax
lea esi, [esp + 0x44]
xor eax, eax
call fcn.00422dc0
jmp 0x40345b
mov edi, 5
cmp word [ebx + 0x2b0], 2
jne 0x4034f5
mov esi, dword [ebx + 0x2a8]
test esi, esi
je 0x4034f5
fld dword [ebx + 0x1e0]
call fcn.00577600
fld dword [ebx + 0x1e4]
add eax, 0x23
mov dword [esp + 0x28], eax
call fcn.00577600
add eax, 0x34
mov dword [esp + 0x2c], eax
mov eax, esi
mov dword [esp + 0x30], 0x19
mov dword [esp + 0x34], edi
call fcn.0052c640
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4034b1
sub eax, edx
mov edx, dword [ebx + 0x1dc]
imul edx, dword [ebx + 0x1d8]
mov ecx, eax
mov eax, 0x51eb851f
mul edx
mov eax, dword [ebx + 0x2a8]
shr edx, 5
shl edx, 0x18
or edx, 0xffffff
push edx
push ecx
call fcn.0052c640
push eax
lea esi, [esp + 0x34]
xor eax, eax
call fcn.00422dc0
cmp word [ebx + 0x2b0], 1
jne 0x403594
mov esi, dword [ebx + 0x2ac]
test esi, esi
je 0x403594
fld dword [ebx + 0x1e0]
call fcn.00577600
fld dword [ebx + 0x1e4]
add eax, 0x23
mov dword [esp + 0x48], eax
call fcn.00577600
add eax, 0x34
mov dword [esp + 0x4c], eax
mov eax, esi
mov dword [esp + 0x50], 0x19
mov dword [esp + 0x54], edi
call fcn.0052c640
lea edx, [eax + 1]
jmp 0x403550
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403550
sub eax, edx
mov edx, dword [ebx + 0x1dc]
imul edx, dword [ebx + 0x1d8]
mov ecx, eax
mov eax, 0x51eb851f
mul edx
mov eax, dword [ebx + 0x2ac]
shr edx, 5
shl edx, 0x18
or edx, 0xffffff
push edx
push ecx
call fcn.0052c640
push eax
lea esi, [esp + 0x54]
xor eax, eax
call fcn.00422dc0
cmp dword [ebx + 0x314], 0
je 0x4035aa
mov ecx, dword [ebx + 0x314]
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
call edx
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.005762ee
mov esp, ebp
pop ebp
ret