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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x675b57
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x702ca8]
xor eax, esp
push eax
lea eax, [esp + 0x130]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x174]
xor ebx, ebx
cmp eax, ebx
je 0x409e17
mov dword [eax], 0xffffffff
mov eax, dword [0x717c98]
mov edi, dword [eax + 0xf57f4]
fild dword [edi + 0x98]
mov ebp, dword [eax + 0xf57f8]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x2c], edi
fmul qword [0x6ddb10]
call fcn.00615b80
mov dword [esp + 0x40], eax
push eax
mov eax, dword [0x717c9c]
mov ecx, dword [eax + 0x1c]
fild dword [ecx + 0x18]
fmul qword [0x6ddab0]
call fcn.00615b80
push eax
push edi
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x4c], esp
push 0xffffffffffffffff
lea eax, [esi + 0x120]
push ebx
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push eax
mov byte [ecx + 4], bl
call fcn.00402610
lea ecx, [esp + 0xb4]
call fcn.00431130
mov dword [esp + 0x138], ebx
fldz
mov edx, dword [esi + 0x118]
fstp dword [esp + 0x18]
fld dword [0x6ddcc0]
push ebx
lea edi, [esi + 0x104]
fstp dword [esp + 0x24]
push 0x6ba06e
push edx
push ebx
mov ecx, edi
call fcn.00403f60
test eax, eax
je 0x409f56
push ebx
push ebx
push ebx
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x4c], esp
push 0xffffffffffffffff
push ebx
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push edi
mov byte [ecx + 4], bl
call fcn.00402610
lea eax, [esp + 0x74]
push eax
mov ecx, ebp
call fcn.0044f120
fild dword [eax]
fcomp qword [0x6ddcb8]
fnstsw ax
test ah, 5
jnp 0x409f3a
push ebx
push ebx
push ebx
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x4c], esp
push 0xffffffffffffffff
push ebx
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push edi
mov byte [ecx + 4], bl
call fcn.00402610
lea ecx, [esp + 0x6c]
push ecx
mov ecx, ebp
call fcn.0044f120
fild dword [eax]
fstp dword [esp + 0x20]
fild dword [ebp + 0x98]
fadd qword [0x6dd9e8]
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
fiadd dword [esp + 0x40]
fstp dword [esp + 0x18]
fild dword [esp + 0x11c]
fstp dword [esp + 0x30]
fld dword [esp + 0x20]
fld dword [esp + 0x30]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jnp 0x409f7a
fstp dword [esp + 0x20]
jmp 0x409f7c
fstp st(0)
fild dword [esp + 0x120]
mov edx, dword [esi + 0x150]
push ebx
lea ecx, [esi + 0x13c]
fadd dword [esp + 0x1c]
push 0x6ba06e
push edx
xor ebp, ebp
push ebx
fstp dword [esp + 0x28]
mov dword [esp + 0x40], ebp
call fcn.00403f60
test eax, eax
je 0x409fba
mov dword [esp + 0x30], 1
mov ebp, dword [esp + 0x30]
mov eax, dword [esi + 0x16c]
push ebx
lea ecx, [esi + 0x158]
push 0x6ba06e
push eax
push ebx
call fcn.00403f60
test eax, eax
je 0x409fde
add ebp, 1
mov dword [esp + 0x30], ebp
cmp ebp, ebx
jle 0x40a015
fild dword [esp + 0x40]
fadd dword [esp + 0x18]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fadd qword [0x6ddcb0]
fstp dword [esp + 0x18]
fld dword [0x6ddca8]
fcom dword [esp + 0x20]
fnstsw ax
test ah, 5
jnp 0x40a013
fstp dword [esp + 0x20]
jmp 0x40a015
fstp st(0)
cmp ebp, 1
jg 0x40a021
mov byte [esi + 0x93], 1
fld dword [esp + 0x20]
fld dword [esp + 0x18]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jnp 0x40a038
fst dword [esp + 0x20]
fmul qword [0x6dda20]
push 0x208
fstp dword [esp + 0x2c]
call fcn.00604431
add esp, 4
mov dword [esp + 0x44], eax
cmp eax, ebx
mov byte [esp + 0x138], 1
je 0x40a0d6
fld dword [esp + 0x18]
push 1
fld qword [0x6dda10]
sub esp, 0x24
fadd st(1), st(0)
mov ecx, esp
fxch st(1)
mov dword [esp + 0x4c], esp
mov dword [ecx + 0x18], 0xf
fstp dword [esp + 0x40]
mov dword [ecx + 0x14], ebx
fld dword [esp + 0x40]
mov byte [ecx + 4], bl
fstp dword [esp + 0x20]
fadd dword [esp + 0x48]
fstp dword [esp + 0x40]
fld dword [esp + 0x40]
fstp dword [esp + 0x1c]
push ebx
push 0x6ba06e
call fcn.004027b0
mov ecx, dword [esi + 0xf8]
mov edx, dword [esi + 0xfc]
sub esp, 0xc
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esi + 0x100]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x78]
call fcn.0040c7d0
jmp 0x40a0d8
xor eax, eax
push eax
mov ecx, esi
mov byte [esp + 0x13c], bl
call fcn.0043f5f0
mov edx, dword [edi + 0x14]
push ebx
push 0x6ba06e
push edx
push ebx
mov ecx, edi
call fcn.00403f60
test eax, eax
je 0x40a203
push 0x240
call fcn.00604431
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, ebx
mov byte [esp + 0x138], 2
je 0x40a1ce
push ecx
mov eax, esp
mov dword [eax], 0xffffffff
mov eax, dword [0x717c98]
mov ecx, dword [eax + 0xf57f8]
mov dword [esp + 0x48], esp
push ecx
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x68], esp
push 0xffffffffffffffff
push ebx
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push edi
mov byte [ecx + 4], bl
call fcn.00402610
fld dword [esi + 0xf8]
fldz
sub esp, 0xc
fadd st(1), st(0)
mov eax, esp
fxch st(1)
fstp dword [esp + 0x74]
fld dword [esi + 0xfc]
fadd dword [esp + 0x58]
fstp dword [esp + 0x48]
fadd dword [esi + 0x100]
fstp dword [esp + 0x50]
fld dword [esp + 0x74]
mov dword [esp + 0x74], esp
fstp dword [esp + 0x7c]
mov edx, dword [esp + 0x7c]
fld dword [esp + 0x48]
mov dword [eax], edx
fstp dword [esp + 0x80]
mov ecx, dword [esp + 0x80]
fld dword [esp + 0x50]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x54]
fstp dword [esp + 0x84]
mov edx, dword [esp + 0x84]
mov dword [eax + 8], edx
call fcn.0042f380
jmp 0x40a1d0
xor eax, eax
mov byte [esp + 0x138], bl
push eax
mov ecx, esi
mov byte [eax + 0x1e9], bl
call fcn.0043f5f0
fld dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
fisub dword [eax + 0x98]
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fisub dword [esp + 0x40]
fstp dword [esp + 0x28]
mov edx, dword [esp + 0x98]
lea ecx, [esp + 0x8c]
mov dword [esp + 0x64], ecx
lea ecx, [esp + 0x58]
mov byte [esp + 0x58], bl
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x68], edx
call fcn.00405930
cmp byte [esp + 0x58], bl
jne 0x40a3dc
fild dword [esp + 0x40]
fstp dword [esp + 0x20]
mov ecx, dword [esp + 0x5c]
mov eax, dword [ecx + 0x90]
cdq
sub eax, edx
sar eax, 1
neg eax
mov dword [esp + 0x18], eax
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x78], ecx
lea ecx, [esp + 0x6c]
mov byte [esp + 0x6c], bl
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x7c], eax
call fcn.00405930
cmp byte [esp + 0x6c], bl
jne 0x40a3bd
push 0x240
call fcn.00604431
mov edi, eax
add esp, 4
mov dword [esp + 0x4c], edi
cmp edi, ebx
mov byte [esp + 0x138], 3
mov ebp, dword [esp + 0x70]
je 0x40a357
mov eax, dword [ebp + 0xb0]
cmp eax, 1
jne 0x40a2b4
or eax, 0xffffffff
mov ecx, dword [esp + 0x2c]
push eax
push ecx
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x40], esp
push 0xffffffffffffffff
lea eax, [ebp + 0x90]
push ebx
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push eax
mov byte [ecx + 4], bl
call fcn.00402610
fild dword [esp + 0x3c]
sub esp, 0xc
mov eax, esp
fstp dword [esp + 0xb0]
fld dword [esp + 0xb0]
fadd dword [esi + 0xf8]
fstp dword [esp + 0x4c]
fld dword [esi + 0xfc]
fadd dword [esp + 0x58]
fstp dword [esp + 0x54]
fld dword [esi + 0x100]
fadd qword [0x6dd9e8]
fstp dword [esp + 0x74]
fld dword [esp + 0x4c]
mov dword [esp + 0x4c], esp
fstp dword [esp + 0x64]
mov edx, dword [esp + 0x64]
fld dword [esp + 0x54]
mov dword [eax], edx
fstp dword [esp + 0x68]
mov ecx, dword [esp + 0x68]
fld dword [esp + 0x74]
mov dword [eax + 4], ecx
fstp dword [esp + 0x6c]
mov edx, dword [esp + 0x6c]
mov ecx, edi
mov dword [eax + 8], edx
call fcn.0042f380
jmp 0x40a359
xor eax, eax
mov byte [esp + 0x138], bl
mov dword [eax + 0x210], 3
mov byte [eax + 0x1e9], bl
cmp dword [esi + 0xc], ebx
jne 0x40a380
mov dword [eax + 8], ebx
mov dword [eax + 4], ebx
mov dword [esi + 0xc], eax
jmp 0x40a396
mov edx, dword [esi + 0x10]
mov ecx, dword [edx + 8]
cmp ecx, ebx
mov dword [eax + 8], ecx
je 0x40a390
mov dword [ecx + 4], eax
mov dword [edx + 8], eax
mov dword [eax + 4], edx
mov dword [esi + 0x10], eax
mov dword [eax + 0x14], esi
mov eax, dword [ebp + 0xac]
add dword [esp + 0x18], eax
lea ecx, [esp + 0x6c]
call fcn.00405930
cmp byte [esp + 0x6c], bl
je 0x40a27f
mov ebp, dword [esp + 0x30]
fld dword [esp + 0x28]
lea ecx, [esp + 0x58]
fsub dword [esp + 0x20]
fstp dword [esp + 0x28]
call fcn.00405930
cmp byte [esp + 0x58], bl
je 0x40a240
cmp ebp, ebx
jle 0x40a6e3
fld dword [esp + 0x28]
mov ecx, dword [esi + 0x150]
fisub dword [esp + 0x40]
push ebx
lea edi, [esi + 0x13c]
push 0x6ba06e
push ecx
push ebx
mov ecx, edi
fstp dword [esp + 0x38]
call fcn.00403f60
test eax, eax
je 0x40a572
push 0x490
call fcn.00604431
add esp, 4
mov dword [esp + 0x44], eax
cmp eax, ebx
mov byte [esp + 0x138], 4
je 0x40a51d
sub ebp, 1
neg ebp
sbb ebp, ebp
sub esp, 0x1c
mov ecx, esp
and ebp, 0xffffffab
mov dword [esp + 0x68], esp
mov dword [esp + 0x48], ebp
push ebx
mov ebp, 0xf
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push 0x6ba06e
mov byte [ecx + 4], bl
call fcn.004027b0
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x54], esp
push 0xffffffffffffffff
mov byte [esp + 0x174], 5
push ebx
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push edi
mov byte [ecx + 4], bl
call fcn.00402610
fild dword [esp + 0x64]
sub esp, 0xc
mov eax, esp
fstp dword [esp + 0x78]
mov dword [esp + 0x90], esp
fld dword [esp + 0x6c]
fsub qword [0x6ddb78]
fstp dword [esp + 0x7c]
fld dword [esi + 0xf8]
fadd dword [esp + 0x78]
fstp dword [esp + 0x70]
fld dword [esi + 0xfc]
fadd dword [esp + 0x7c]
fstp dword [esp + 0x60]
fld dword [esi + 0x100]
fadd qword [0x6dd9e8]
fstp dword [esp + 0x68]
fld dword [esp + 0x70]
fstp dword [esp + 0x78]
mov edx, dword [esp + 0x78]
fld dword [esp + 0x60]
mov dword [eax], edx
fstp dword [esp + 0x7c]
mov ecx, dword [esp + 0x7c]
fld dword [esp + 0x68]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x88]
fstp dword [esp + 0x80]
mov edx, dword [esp + 0x80]
mov dword [eax + 8], edx
mov byte [esp + 0x17c], 4
call fcn.00403a20
jmp 0x40a51f
xor eax, eax
mov byte [esp + 0x138], bl
push 0xa0
mov ecx, eax
mov dword [esi + 0x178], eax
call fcn.00404af0
cmp dword [esi + 0xc], ebx
mov eax, dword [esi + 0x178]
jne 0x40a54e
mov dword [eax + 8], ebx
mov dword [eax + 4], ebx
mov dword [esi + 0xc], eax
jmp 0x40a56c
cmp eax, ebx
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx + 8]
je 0x40a55b
mov dword [eax + 8], edx
cmp edx, ebx
je 0x40a562
mov dword [edx + 4], eax
cmp eax, ebx
mov dword [ecx + 8], eax
je 0x40a56c
mov dword [eax + 4], ecx
mov dword [esi + 0x10], eax
mov dword [eax + 0x14], esi
mov eax, dword [esi + 0x16c]
push ebx
lea edi, [esi + 0x158]
push 0x6ba06e
push eax
push ebx
mov ecx, edi
call fcn.00403f60
test eax, eax
je 0x40a6e3
push 0x490
call fcn.00604431
mov ebp, eax
add esp, 4
mov dword [esp + 0x4c], ebp
cmp ebp, ebx
mov byte [esp + 0x138], 6
je 0x40a68e
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x48], esp
push ebx
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push 0x6ba06e
mov byte [ecx + 4], bl
call fcn.004027b0
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x54], esp
push 0xffffffffffffffff
mov byte [esp + 0x174], 7
push ebx
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push edi
mov byte [ecx + 4], bl
call fcn.00402610
fld dword [esp + 0x60]
fsub qword [0x6ddb78]
sub esp, 0xc
mov eax, esp
fstp dword [esp + 0xc8]
fld dword [esi + 0xf8]
fadd qword [0x6ddca0]
fstp dword [esp + 0x70]
fld dword [esi + 0xfc]
fadd dword [esp + 0xc8]
fstp dword [esp + 0x60]
fld dword [esi + 0x100]
fadd qword [0x6dd9e8]
fstp dword [esp + 0x68]
fld dword [esp + 0x70]
mov dword [esp + 0x70], esp
fstp dword [esp + 0x78]
mov ecx, dword [esp + 0x78]
fld dword [esp + 0x60]
mov dword [eax], ecx
fstp dword [esp + 0x7c]
mov edx, dword [esp + 0x7c]
fld dword [esp + 0x68]
mov dword [eax + 4], edx
fstp dword [esp + 0x80]
mov ecx, dword [esp + 0x80]
mov dword [eax + 8], ecx
mov ecx, ebp
mov byte [esp + 0x17c], 6
call fcn.00403a20
jmp 0x40a690
xor eax, eax
mov byte [esp + 0x138], bl
push 0xa0
mov ecx, eax
mov dword [esi + 0x17c], eax
call fcn.00404af0
cmp dword [esi + 0xc], ebx
mov eax, dword [esi + 0x17c]
jne 0x40a6bf
mov dword [eax + 8], ebx
mov dword [eax + 4], ebx
mov dword [esi + 0xc], eax
jmp 0x40a6dd
cmp eax, ebx
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx + 8]
je 0x40a6cc
mov dword [eax + 8], edx
cmp edx, ebx
je 0x40a6d3
mov dword [edx + 4], eax
cmp eax, ebx
mov dword [ecx + 8], eax
je 0x40a6dd
mov dword [eax + 4], ecx
mov dword [esi + 0x10], eax
mov dword [eax + 0x14], esi
mov dword [esp + 0x138], 0xffffffff
lea ecx, [esp + 0x8c]
mov dword [esp + 0x8c], 0x6c05e0
mov dword [esp + 0xac], 0x6c0630
call fcn.00433070
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret