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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4255bc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
movsx eax, byte [ecx + 1]
mov dl, byte [edi + 1]
cmp eax, 1
movsx esi, dl
mov dword [esp + 0x18], esi
je 0x415dfe
cmp esi, 1
je 0x41600d
movsx eax, byte [edi]
mov esi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
add eax, 0xfffffff7
cmp eax, 0x2e
ja case.0x415787.28
xor ecx, ecx
mov cl, byte [eax + 0x416354]
jmp dword [ecx*4 + 0x416304]
mov ecx, dword [edi + 8]
push esi
push ebx
call fcn.00410710
fstp qword [esp + 0xc]
mov ecx, dword [edi + 4]
push esi
push ebx
call fcn.00410710
fadd qword [esp + 0xc]
fstp qword [esp + 0xc]
jmp 0x415db6
mov ecx, dword [edi + 4]
push esi
push ebx
call fcn.00410710
fstp qword [esp + 0xc]
mov ecx, dword [edi + 8]
push esi
push ebx
call fcn.00410710
fsubr qword [esp + 0xc]
fstp qword [esp + 0xc]
jmp 0x415db6
mov ecx, dword [edi + 8]
push esi
push ebx
call fcn.00410710
fstp qword [esp + 0xc]
mov ecx, dword [edi + 4]
push esi
push ebx
call fcn.00410710
fmul qword [esp + 0xc]
fstp qword [esp + 0xc]
jmp 0x415db6
mov ecx, dword [edi + 4]
push esi
push ebx
call fcn.00410710
fstp qword [esp + 0xc]
mov ecx, dword [edi + 8]
push esi
push ebx
call fcn.00410710
fdivr qword [esp + 0xc]
fstp qword [esp + 0xc]
jmp 0x415db6
mov ecx, dword [edi + 4]
push esi
push ebx
call fcn.00410710
fstp qword [esp + 0xc]
mov ecx, dword [edi + 8]
push esi
push ebx
call fcn.00410710
fld qword [esp + 0xc]
fxch st(1)
call fcn.0041c95a
fstp qword [esp + 0xc]
jmp 0x415db6
mov ecx, dword [edi + 4]
push esi
push ebx
call fcn.00410710
fchs
fstp qword [esp + 0xc]
jmp 0x415db6
mov edx, dword [edi + 0x10]
mov eax, dword [edi + 0x14]
jmp 0x415dae
mov ecx, dword [ebx + 0xc]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
fild qword [esp + 0xc]
fstp qword [esp + 0xc]
jmp 0x415db6
mov edx, dword [ebx + 8]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
fild qword [esp + 0xc]
fstp qword [esp + 0xc]
jmp 0x415db6
mov eax, dword [esi]
mov dword [esp + 0x8c], eax
mov ecx, dword [eax]
mov dword [esp + 0x90], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x94], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x98], eax
push 0
push esi
lea ecx, [esp + 0x120]
push ebx
push ecx
mov ecx, dword [edi + 4]
mov dword [esp + 0x140], 0
call fcn.00412530
mov edx, dword [eax + 8]
mov ecx, dword [eax + 4]
sub edx, ecx
mov ecx, dword [esp + 0x8c]
sar edx, 3
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], 0
fild qword [esp + 0xc]
lea eax, [esp + 0x90]
mov dword [esp + 0x130], 0xffffffff
push eax
fstp qword [esp + 0x10]
call fcn.00410690
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
jmp 0x415db6
mov eax, dword [esi]
mov ecx, eax
mov dword [esp + 0xac], eax
mov edx, dword [ecx]
mov dword [esp + 0xb0], edx
mov edx, dword [ecx + 4]
mov dword [esp + 0xb4], edx
mov ecx, dword [ecx + 8]
mov dword [esp + 0xb8], ecx
push eax
lea edx, [esp + 0x100]
push ebx
push edx
mov dword [esp + 0x13c], 1
call fcn.00409580
add esp, 0xc
mov ecx, eax
call fcn.00416390
mov ecx, dword [esp + 0xac]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0
lea eax, [esp + 0xb0]
fild qword [esp + 0xc]
push eax
mov dword [esp + 0x134], 0xffffffff
fstp qword [esp + 0x10]
call fcn.00410690
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
jmp 0x415db6
mov eax, dword [esi]
mov dword [esp + 0xbc], eax
mov ecx, dword [eax]
mov dword [esp + 0xc0], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0xc4], edx
mov eax, dword [eax + 8]
mov dword [esp + 0xc8], eax
push esi
lea ecx, [esp + 0x80]
push ebx
push ecx
mov ecx, dword [edi + 4]
mov dword [esp + 0x13c], 2
call fcn.00410f70
mov ecx, eax
call fcn.00416390
mov ecx, dword [esp + 0xbc]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0
lea edx, [esp + 0xc0]
fild qword [esp + 0xc]
push edx
mov dword [esp + 0x134], 0xffffffff
fstp qword [esp + 0x10]
call fcn.00410690
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
jmp 0x415db6
mov eax, dword [esi]
mov edx, eax
mov dword [esp + 0xcc], eax
mov ecx, dword [edx]
mov dword [esp + 0xd0], ecx
mov ecx, dword [edx + 4]
mov dword [esp + 0xd4], ecx
mov edx, dword [edx + 8]
mov dword [esp + 0xd8], edx
push eax
lea eax, [esp + 0x70]
push ebx
push eax
mov dword [esp + 0x13c], 3
call fcn.00409580
mov eax, dword [eax]
push eax
call fcn.00409fb0
fstp qword [esp + 0x1c]
add esp, 0x10
lea ecx, [esp + 0xd0]
mov dword [esp + 0x130], 0xffffffff
push ecx
mov ecx, dword [esp + 0xd0]
call fcn.00410690
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
jmp 0x415dae
mov ecx, dword [edi + 4]
push esi
push ebx
call fcn.00410710
fstp qword [esp + 0xc]
jmp 0x415db6
mov eax, dword [esi]
mov dword [esp + 0x9c], eax
mov ecx, dword [eax]
mov dword [esp + 0xa0], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0xa4], edx
mov eax, dword [eax + 8]
mov dword [esp + 0xa8], eax
push 0
push esi
lea ecx, [esp + 0xf4]
push ebx
push ecx
mov ecx, dword [edi + 4]
mov dword [esp + 0x140], 4
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
call fcn.00412530
mov edx, eax
mov eax, dword [edx]
mov dword [esp + 0x1c], eax
mov edi, dword [edx + 4]
mov eax, dword [edx + 8]
cmp edi, eax
mov dword [esp + 0x24], eax
mov ecx, dword [edx + 0xc]
mov dword [esp + 0x28], ecx
je 0x415bd9
mov eax, dword [esi]
mov edx, eax
mov dword [esp + 0xdc], eax
mov ecx, dword [edx]
mov dword [esp + 0xe0], ecx
mov ecx, dword [edx + 4]
mov dword [esp + 0xe4], ecx
mov edx, dword [edx + 8]
mov dword [esp + 0xe8], edx
push eax
lea eax, [esp + 0x30]
push edi
push eax
mov byte [esp + 0x13c], 5
call fcn.00409580
mov eax, dword [eax]
push eax
call fcn.00409fb0
fadd qword [esp + 0x1c]
add esp, 0x10
lea ecx, [esp + 0xe0]
mov byte [esp + 0x130], 4
push ecx
mov ecx, dword [esp + 0xe0]
fstp qword [esp + 0x10]
call fcn.00410690
mov eax, dword [esp + 0x24]
add edi, 8
cmp edi, eax
jne 0x415b63
mov ecx, dword [esp + 0x9c]
lea edx, [esp + 0xa0]
push edx
mov dword [esp + 0x134], 0xffffffff
call fcn.00410690
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
jmp 0x415db6
mov ecx, dword [edi + 4]
push esi
push ebx
call fcn.00410710
fstp qword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
push edx
push eax
call fcn.0041c668
fstp qword [esp + 0x14]
add esp, 8
jmp 0x415db6
mov ecx, dword [edi + 4]
push esi
push ebx
call fcn.00410710
fstp qword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push ecx
push edx
call fcn.0041c737
fstp qword [esp + 0x14]
add esp, 8
jmp 0x415db6
mov ecx, dword [edi + 4]
push esi
push ebx
call fcn.00410710
sub esp, 8
fstp qword [esp]
call fcn.0040a070
fstp qword [esp + 0x14]
add esp, 8
jmp 0x415db6
cmp dl, 2
jne case.0x415787.28
mov ecx, dword [edi + 0x10]
call fcn.0040b9b0
fstp qword [esp + 0xc]
jmp 0x415db6
mov eax, dword [esp + 0x18]
dec eax
je 0x415d4b
sub eax, 2
je 0x415cde
dec eax
je 0x415cbe
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
jmp 0x415db6
push esi
push ebx
mov ecx, edi
call fcn.0040f410
neg al
sbb eax, eax
neg eax
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fstp qword [esp + 0xc]
jmp 0x415db6
mov eax, dword [esi]
mov dword [esp + 0x3c], eax
mov ecx, dword [eax]
mov dword [esp + 0x40], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x44], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x48], eax
push esi
lea ecx, [esp + 0x60]
push ebx
push ecx
mov ecx, edi
mov dword [esp + 0x13c], 6
call fcn.00410f70
mov eax, dword [eax]
push eax
call fcn.00409fb0
mov ecx, dword [esp + 0x40]
add esp, 4
fstp qword [esp + 0xc]
lea edx, [esp + 0x40]
mov dword [esp + 0x130], 0xffffffff
push edx
call fcn.00410690
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
jmp 0x415db6
mov eax, dword [esi]
mov dword [esp + 0x1c], eax
mov edx, dword [eax]
mov dword [esp + 0x20], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x24], ecx
mov edx, dword [eax + 8]
mov dword [esp + 0x28], edx
push esi
lea eax, [esp + 0x50]
push ebx
push eax
mov ecx, edi
mov dword [esp + 0x13c], 7
call fcn.00410f70
mov eax, dword [eax]
push eax
call fcn.00409fb0
fstp qword [esp + 0x10]
add esp, 4
lea ecx, [esp + 0x20]
mov dword [esp + 0x130], 0xffffffff
push ecx
mov ecx, dword [esp + 0x20]
call fcn.00410690
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], eax
mov ecx, dword [ebp + 8]
push esi
push ebx
call fcn.00410710
fld qword [esp + 0xc]
fcompp
fnstsw ax
test ah, 0x41
jne 0x415de7
mov eax, 1
mov ecx, dword [esp + 0x128]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [esp + 0x128]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 1
jne 0x416148
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebx]
mov dword [esp + 0x7c], eax
mov edx, dword [eax]
mov dword [esp + 0x80], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x84], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x88], eax
mov edx, dword [ebp + 0x10]
push 0
push ebx
lea eax, [esp + 0xf4]
push edx
push eax
mov dword [esp + 0x140], 8
call fcn.00412530
mov ecx, dword [eax]
push 0
mov dword [esp + 0x20], ecx
mov ecx, dword [ebp + 0x10]
mov esi, dword [eax + 4]
push ebx
push ecx
mov ecx, edi
mov edx, dword [eax + 8]
mov dword [esp + 0x30], edx
lea edx, [esp + 0xf8]
mov eax, dword [eax + 0xc]
push edx
mov dword [esp + 0x38], eax
call fcn.00412530
mov ecx, dword [eax]
mov dword [esp + 0x18], esi
mov dword [esp + 0x3c], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x40], edx
mov edi, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x24]
cmp esi, eax
je 0x415fda
mov eax, dword [ebx]
mov ecx, eax
mov dword [esp + 0x6c], eax
mov edx, dword [ecx]
mov dword [esp + 0x70], edx
mov edx, dword [ecx + 4]
mov dword [esp + 0x74], edx
mov ecx, dword [ecx + 8]
mov dword [esp + 0x78], ecx
mov edx, dword [esp + 0x18]
push eax
lea eax, [esp + 0x50]
push edx
push eax
mov byte [esp + 0x13c], 9
call fcn.00409580
mov eax, dword [eax]
push eax
call fcn.00409fb0
mov esi, dword [esp + 0x50]
add esp, 0x10
fstp qword [esp + 0xc]
cmp esi, edi
je 0x415f52
mov eax, dword [ebx]
mov ecx, eax
mov dword [esp + 0x2c], eax
mov edx, dword [ecx]
mov dword [esp + 0x30], edx
mov edx, dword [ecx + 4]
mov dword [esp + 0x34], edx
mov ecx, dword [ecx + 8]
mov dword [esp + 0x38], ecx
push eax
lea edx, [esp + 0x60]
push esi
push edx
mov byte [esp + 0x13c], 0xa
call fcn.00409580
mov eax, dword [eax]
push eax
call fcn.00409fb0
fld qword [esp + 0x1c]
fcomp st(1)
add esp, 0x10
mov byte [esp + 0x130], 9
fnstsw ax
test ah, 1
fstp st(0)
jne 0x415f80
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x30]
push eax
call fcn.00410690
add esi, 8
cmp esi, edi
jne 0x415eeb
lea ecx, [esp + 0x70]
mov byte [esp + 0x130], 8
push ecx
mov ecx, dword [esp + 0x70]
call fcn.00410690
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
add eax, 8
cmp eax, ecx
mov dword [esp + 0x18], eax
je 0x415fda
jmp 0x415ea0
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x30]
push edx
call fcn.00410690
mov ecx, dword [esp + 0x6c]
lea eax, [esp + 0x70]
push eax
mov byte [esp + 0x134], 8
call fcn.00410690
lea ecx, [esp + 0x80]
mov dword [esp + 0x130], 0xffffffff
push ecx
mov ecx, dword [esp + 0x80]
call fcn.00410690
mov al, 1
mov ecx, dword [esp + 0x128]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x7c]
lea edx, [esp + 0x80]
push edx
mov dword [esp + 0x134], 0xffffffff
call fcn.00410690
xor al, al
mov ecx, dword [esp + 0x128]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebx]
mov dword [esp + 0x2c], eax
mov edx, dword [eax]
mov dword [esp + 0x30], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x34], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x38], eax
mov esi, dword [ebp + 0x10]
push ebx
push esi
mov dword [esp + 0x138], 0xb
call fcn.00410710
fstp qword [esp + 0xc]
push 0
push ebx
lea ecx, [esp + 0xf4]
push esi
push ecx
mov ecx, edi
call fcn.00412530
mov edx, dword [eax]
mov dword [esp + 0x1c], edx
mov esi, dword [eax + 4]
mov edi, dword [eax + 8]
cmp esi, edi
mov eax, dword [eax + 0xc]
mov dword [esp + 0x28], eax
je 0x416118
mov eax, dword [ebx]
mov ecx, eax
mov dword [esp + 0x5c], eax
mov edx, dword [ecx]
mov dword [esp + 0x60], edx
mov edx, dword [ecx + 4]
mov dword [esp + 0x64], edx
mov ecx, dword [ecx + 8]
mov dword [esp + 0x68], ecx
push eax
lea edx, [esp + 0x50]
push esi
push edx
mov byte [esp + 0x13c], 0xc
call fcn.00409580
mov eax, dword [eax]
push eax
call fcn.00409fb0
fld qword [esp + 0x1c]
fcomp st(1)
add esp, 0x10
mov byte [esp + 0x130], 0xb
fnstsw ax
test ah, 1
fstp st(0)
jne 0x4160da
mov ecx, dword [esp + 0x5c]
lea eax, [esp + 0x60]
push eax
call fcn.00410690
add esi, 8
cmp esi, edi
je 0x416118
jmp 0x416071
lea ecx, [esp + 0x60]
push ecx
mov ecx, dword [esp + 0x60]
call fcn.00410690
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x30]
push edx
mov dword [esp + 0x134], 0xffffffff
call fcn.00410690
mov al, 1
mov ecx, dword [esp + 0x128]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x134], 0xffffffff
call fcn.00410690
xor al, al
mov ecx, dword [esp + 0x128]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0x14]
mov eax, dword [esi]
mov dword [esp + 0x18], eax
mov dword [esp + 0x4c], eax
mov edx, dword [eax]
mov dword [esp + 0x50], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x54], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x58], eax
mov edx, dword [ebp + 0x10]
push 0
push esi
lea eax, [esp + 0xf4]
push edx
push eax
mov dword [esp + 0x140], 0xd
call fcn.00412530
mov ecx, dword [eax]
push esi
mov dword [esp + 0x40], ecx
mov ecx, dword [ebp + 0x10]
mov ebx, dword [eax + 4]
push ecx
mov ecx, edi
mov edx, dword [eax + 8]
mov dword [esp + 0x4c], edx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x50], eax
call fcn.00410710
mov eax, dword [esp + 0x44]
fstp qword [esp + 0xfc]
cmp ebx, eax
je 0x4162b6
mov esi, dword [esi]
mov edx, esi
mov dword [esp + 0x1c], esi
mov edi, dword [edx]
mov dword [esp + 0x20], edi
mov eax, dword [edx + 4]
mov dword [esp + 0x24], eax
mov ecx, dword [edx + 8]
mov dword [esp + 0x28], ecx
push esi
lea edx, [esp + 0x110]
push ebx
push edx
mov byte [esp + 0x13c], 0xe
call fcn.00409580
mov eax, dword [eax]
push eax
call fcn.00409fb0
fcomp qword [esp + 0x10c]
add esp, 0x10
mov byte [esp + 0x130], 0xd
fnstsw ax
test ah, 1
mov eax, dword [esi]
jne 0x41624c
cmp eax, edi
je 0x416230
mov ecx, dword [eax]
push eax
mov dword [esp + 0x10], ecx
call dword [0x4285c4]
mov eax, dword [esp + 0x10]
add esp, 4
cmp eax, edi
jne 0x416218
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x24]
add ebx, 8
mov dword [esi], edi
cmp ebx, eax
mov dword [esi + 4], edx
je 0x4162b6
mov esi, dword [ebp + 0x14]
jmp 0x4161be
cmp eax, edi
je 0x416262
mov ebx, dword [eax]
push eax
call dword [0x4285c4]
add esp, 4
cmp ebx, edi
mov eax, ebx
jne 0x416250
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x18]
mov dword [esi], edi
mov edi, dword [esp + 0x50]
mov dword [esi + 4], eax
mov eax, dword [ebx]
cmp eax, edi
mov dword [esp + 0x130], 0xffffffff
je 0x416296
mov esi, dword [eax]
push eax
call dword [0x4285c4]
add esp, 4
cmp esi, edi
mov eax, esi
jne 0x416284
mov ecx, dword [esp + 0x54]
mov dword [ebx], edi
mov dword [ebx + 4], ecx
mov al, 1
mov ecx, dword [esp + 0x128]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x50]
mov dword [esp + 0x130], 0xffffffff
mov eax, dword [ebx]
cmp eax, edi
je 0x4162e1
mov esi, dword [eax]
push eax
call dword [0x4285c4]
add esp, 4
cmp esi, edi
mov eax, esi
jne 0x4162cf
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x128]
mov dword [ebx], edi
pop edi
mov dword [ebx + 4], edx
pop esi
xor al, al
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret