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

Disassembly:
sub esp, 0x128
push ebx
push ebp
push esi
push edi
mov eax, dword [ecx + 0x854]
mov dword [esp + 0x4c], eax
mov eax, dword [ecx + 0x85c]
mov dword [esp + 0x6c], eax
mov eax, dword [ecx + 0x83c]
mov dword [esp + 0x50], eax
xor esi, esi
xor eax, eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
mov edx, dword [ecx + 0x858]
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], eax
mov ebx, dword [ecx + 0xc]
mov ebp, dword [ecx + 0x850]
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], eax
mov dword [esp + 0xd0], eax
mov dword [esp + 0xd4], eax
mov dword [esp + 0x60], edx
mov dword [esp + 0xd8], eax
lea edx, [ecx + 0x824]
mov dword [esp + 0xdc], eax
mov dword [esp + 0x54], edx
mov edx, dword [ecx + 0x840]
mov dword [esp + 0xe0], eax
mov dword [esp + 0x74], ebx
mov dword [esp + 0x3c], ebp
lea edi, [ecx + 0x830]
mov dword [esp + 0x7c], edx
mov dword [esp + 0x68], 0x430990
mov dword [esp + 0x80], 0x4309b8
mov dword [esp + 0x5c], 0x436ca0
mov dword [esp + 0x58], 0x436cac
mov dword [esp + 0x64], esi
mov dword [esp + 0xe4], eax
mov dword [esp + 0x28], esi
jmp 0x412522
mov ebx, dword [esp + 0x74]
mov esi, dword [esp + 0x28]
movsx edx, word [esi*2 + 0x4308c4]
and dh, 0xef
cmp esi, 0xa
mov dword [esp + 0x10], edx
jne 0x41277d
mov ebp, dword [esp + 0x13c]
mov eax, dword [esp + 0x140]
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x4c], eax
movsx eax, byte [esi + 0x4308ad]
cmp ebx, eax
jge 0x41255d
mov eax, ebx
movsx ebx, byte [esi + 0x4308ac]
mov esi, eax
sub esi, ebx
cmp esi, 4
mov dword [esp + 0x38], eax
jl 0x412650
mov eax, dword [esp + 0x4c]
lea esi, [eax + ebx*4 + 0xc]
sub eax, ebp
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x38]
sub eax, ebx
sub eax, 4
lea edx, [ebp + ebx*4 + 4]
mov ebp, dword [esp + 0x10]
fld dword [esp + ebp*4 + 0x98]
shr eax, 2
add eax, 1
lea ebx, [ebx + eax*4]
mov ebp, dword [esi - 0xc]
mov dword [esp + 0x40], ebp
mov ebp, dword [edx - 4]
fld dword [esp + 0x40]
fmul dword [esp + 0x40]
mov dword [esp + 0x34], ebp
mov ebp, dword [esp + 0x48]
mov ebp, dword [edx + ebp]
mov dword [esp + 0x24], ebp
mov ebp, dword [edx]
mov dword [esp + 0x20], ebp
mov ebp, dword [esi - 4]
mov dword [esp + 0x44], ebp
fld dword [esp + 0x44]
mov ebp, dword [edx + 4]
fmul dword [esp + 0x44]
mov dword [esp + 0x2c], ebp
mov ebp, dword [esi]
mov dword [esp + 0x1c], ebp
mov ebp, dword [edx + 8]
faddp st(1)
fld dword [esp + 0x34]
mov dword [esp + 0x30], ebp
fmul dword [esp + 0x34]
add edx, 0x10
add esi, 0x10
sub eax, 1
faddp st(1)
fld dword [esp + 0x30]
fmul dword [esp + 0x30]
faddp st(1)
fld dword [esp + 0x2c]
fmul dword [esp + 0x2c]
faddp st(1)
fld dword [esp + 0x24]
fmul dword [esp + 0x24]
faddp st(1)
fld dword [esp + 0x1c]
fmul dword [esp + 0x1c]
faddp st(1)
fld dword [esp + 0x20]
fmul dword [esp + 0x20]
faddp st(1)
faddp st(1)
jne 0x4125a4
mov edx, dword [esp + 0x10]
mov ebp, dword [esp + 0x3c]
fstp dword [esp + edx*4 + 0x98]
mov eax, dword [esp + 0x38]
cmp ebx, eax
jge 0x4126a2
mov esi, dword [esp + 0x4c]
sub esi, dword [esp + 0x3c]
lea edx, [esp + edx*4 + 0x98]
mov dword [esp + 0x48], edx
lea edx, [ebp + ebx*4]
sub eax, ebx
mov ebx, dword [esp + 0x48]
fld dword [ebx]
mov ebp, dword [edx + esi]
mov dword [esp + 0x14], ebp
mov ebp, dword [edx]
fld dword [esp + 0x14]
fmul dword [esp + 0x14]
mov dword [esp + 0x18], ebp
fld dword [esp + 0x18]
add edx, 4
sub eax, 1
fmul dword [esp + 0x18]
faddp st(1)
faddp st(1)
jne 0x412673
mov ebp, dword [esp + 0x3c]
fstp dword [ebx]
mov eax, dword [esp + 0x28]
add eax, 1
cmp eax, 0x16
mov dword [esp + 0x28], eax
jl 0x41251a
mov eax, dword [ecx + 0x850]
mov esi, dword [ecx + 0x854]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x4c], esi
xor edx, edx
mov ebp, 0x3f800000
mov eax, dword [ecx + 0x844]
fld dword [eax + edx]
add eax, edx
fmul dword [0x430f84]
fstp dword [eax]
mov eax, dword [ecx + 0x844]
fld dword [eax + edx]
lea ebx, [eax + edx]
fcomp dword [esp + edx + 0x98]
fnstsw ax
test ah, 5
jp 0x412707
mov eax, dword [esp + edx + 0x98]
mov dword [ebx], eax
mov ebx, dword [ecx + 0x844]
fld dword [ebx + edx]
mov eax, dword [ecx + 0x84c]
fsub dword [esp + edx + 0x98]
add eax, edx
fsub dword [eax]
fmul dword [0x42e7e0]
fadd dword [eax]
fstp dword [esp + 0x28]
mov ebx, dword [esp + 0x28]
fld dword [esp + edx + 0x98]
mov dword [eax], ebx
mov eax, dword [ecx + 0x848]
fsub dword [eax + edx]
add eax, edx
fmul dword [0x42e7e0]
fadd dword [eax]
fstp dword [esp + 0x34]
fld dword [esp + 0x28]
mov ebx, dword [esp + 0x34]
fmul dword [0x430f80]
mov dword [eax], ebx
fstp dword [esp + 0x28]
fld dword [esp + 0x28]
fcomp dword [esp + 0x34]
fnstsw ax
test ah, 0x41
jp 0x412792
mov dword [esp + edx + 0xe8], ebp
jmp 0x4127a1
jge 0x412550
movsx eax, byte [esi + 0x4308ac]
add eax, 1
jmp 0x41255d
fld dword [esp + 0x34]
fdiv dword [esp + 0x28]
fstp dword [esp + edx + 0xe8]
add edx, 4
cmp edx, 0x50
jl 0x4126d1
xor eax, eax
mov dword [esp + 0x28], eax
jmp 0x4127c0
movsx ebp, word [eax*2 + 0x4308c4]
and ebp, 0xffffefff
cmp eax, 0xa
jne 0x412991
mov edx, dword [esp + 0x13c]
mov esi, dword [esp + 0x140]
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x144]
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0x148]
mov dword [esp + 0x6c], edx
lea edx, [ecx + 0x80c]
mov dword [esp + 0x54], edx
mov edx, dword [ecx + 0x7ec]
mov dword [esp + 0x50], edx
mov edx, dword [ecx + 0x7f0]
mov dword [esp + 0x4c], esi
lea edi, [ecx + 0x818]
mov dword [esp + 0x7c], edx
mov dword [esp + 0x68], 0x4308f0
mov dword [esp + 0x80], 0x430940
mov dword [esp + 0x5c], 0x436c88
mov dword [esp + 0x58], 0x436c94
mov dword [esp + 0x64], 3
movsx edx, byte [eax + 0x4308ad]
mov ebx, dword [esp + 0x74]
cmp ebx, edx
jl 0x412863
mov ebx, edx
movsx edx, byte [eax + 0x4308ac]
cmp edx, ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], edx
jge 0x412d41
mov ebx, dword [esp + 0x68]
lea eax, [esp + ebp*4 + 0xe8]
mov ebp, dword [esp + 0x80]
sub ebx, ebp
mov dword [esp + 0x90], ebx
mov ebx, ebp
mov ebp, dword [esp + 0x50]
sub ebx, ebp
mov dword [esp + 0x94], ebx
mov ebx, dword [esp + 0x7c]
sub ebx, ebp
mov ebp, dword [esp + 0x3c]
mov dword [esp + 0x48], eax
sub ebp, esi
lea eax, [esi + edx*4]
mov dword [esp + 0x44], eax
mov dword [esp + 0x84], ebp
mov ebp, dword [esp + 0x60]
mov eax, edx
sub eax, dword [esp + 0x64]
sub ebp, esi
add eax, eax
mov dword [esp + 0x88], ebp
mov ebp, dword [esp + 0x6c]
add eax, eax
sub ebp, esi
mov esi, dword [esp + 0x44]
lea edx, [ecx + edx*4 + 0x808]
mov dword [esp + 0x40], edx
mov dword [esp + 0x8c], ebp
jmp 0x412900
cmp dword [esp + 0x28], 0xa
mov ebp, dword [esp + 0x84]
mov ebp, dword [esi + ebp]
mov esi, dword [esi]
mov dword [esp + 0x70], ebp
mov dword [esp + 0x78], esi
jl 0x4129c9
mov esi, dword [esp + 0x34]
cmp esi, 0x17
jl 0x4129a6
mov esi, dword [edx]
mov ebp, dword [esp + 0x50]
add ebp, eax
add esi, esi
mov dword [esp + 0x18], ebp
mov ebp, dword [ebp]
add esi, esi
add ebp, esi
mov dword [esp + 0x10], ebp
mov ebp, dword [ebp]
mov dword [esp + 0x20], ebp
mov ebp, dword [esp + 0x18]
mov ebp, dword [ebx + ebp]
mov esi, dword [esi + ebp]
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0x70]
mov dword [ebp], esi
mov edx, dword [edx]
mov esi, dword [esp + 0x18]
mov esi, dword [esi + ebx]
mov ebp, dword [esp + 0x78]
mov dword [esi + edx*4], ebp
mov edx, dword [esp + 0x40]
add dword [edx], 1
mov esi, dword [edx]
cmp esi, dword [edx + 0xa4]
jl 0x412ce4
mov dword [edx], 0
jmp 0x412ce4
jge 0x412852
movsx ebx, byte [eax + 0x4308ac]
add ebx, 1
jmp 0x412863
cmp esi, 3
jle 0x4129c9
fild dword [esp + 0x34]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fmul dword [0x430f7c]
fsubr dword [0x430f78]
fstp dword [esp + 0x24]
jmp 0x4129d1
mov dword [esp + 0x24], 0x3f800000
mov esi, dword [ecx + 0x7e8]
mov edx, dword [esp + 0x50]
mov ebp, dword [edx + eax]
add edx, eax
add esi, esi
add esi, esi
add ebp, esi
mov dword [esp + 0x18], ebp
mov ebp, dword [ebp]
mov dword [esp + 0x20], ebp
mov ebp, dword [edx + ebx]
fld dword [esp + 0x20]
mov esi, dword [esi + ebp]
mov ebp, dword [esp + 0x90]
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0x94]
add esi, edx
fmul dword [esi + ebp]
fld dword [esp + 0x1c]
fmul dword [esi]
fsubp st(1)
fstp dword [esp + 0x14]
fld dword [esp + 0x20]
fmul dword [esi]
fld dword [esp + 0x1c]
fmul dword [esi + ebp]
mov esi, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x20], esi
faddp st(1)
fstp dword [esp + 0x10]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0x70]
mov dword [ebp], esi
mov edx, dword [edx + ebx]
mov esi, dword [ecx + 0x7e8]
mov ebp, dword [esp + 0x78]
mov dword [edx + esi*4], ebp
mov edx, dword [ecx + 0x7f4]
mov esi, dword [esp + 0x54]
mov esi, dword [esi]
add edx, edx
add edx, edx
mov esi, dword [edx + esi]
mov ebp, dword [esi + eax]
add esi, eax
mov dword [esp + 0x30], ebp
mov ebp, dword [edi]
fld dword [esp + 0x30]
mov edx, dword [edx + ebp]
mov edx, dword [eax + edx]
mov ebp, dword [esp + 0x58]
mov ebp, dword [ebp]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x5c]
mov edx, dword [edx]
fmul dword [edx + eax]
add edx, eax
fld dword [esp + 0x2c]
add ebp, eax
fmul dword [ebp]
fsubp st(1)
fstp dword [esp + 0x14]
fld dword [esp + 0x2c]
fmul dword [edx]
fld dword [esp + 0x30]
fmul dword [ebp]
faddp st(1)
fstp dword [esp + 0x10]
fld dword [esp + 0x24]
fmul dword [0x43089c]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fmul dword [esp + 0x20]
fsubr dword [esp + 0x14]
fstp dword [esp + 0x14]
fld dword [esp + 0x18]
fmul dword [esp + 0x1c]
fsubr dword [esp + 0x10]
fstp dword [esp + 0x10]
fld dword [esp + 0x14]
fmul dword [esp + 0x24]
fmul dword [0x43089c]
fadd dword [esp + 0x20]
fstp dword [esi]
mov esi, dword [edi]
fld dword [esp + 0x10]
mov edx, dword [ecx + 0x7f4]
fmul dword [esp + 0x24]
mov edx, dword [esi + edx*4]
mov esi, dword [esp + 0x54]
fmul dword [0x43089c]
fadd dword [esp + 0x1c]
fstp dword [eax + edx]
mov edx, dword [esp + 0x14]
mov esi, dword [esi + 4]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x1c], edx
mov edx, dword [ecx + 0x7f8]
add edx, edx
add edx, edx
mov ebp, dword [esi + edx]
mov ebp, dword [eax + ebp]
add esi, edx
mov dword [esp + 0x30], ebp
mov ebp, dword [edi + 4]
fld dword [esp + 0x30]
mov edx, dword [edx + ebp]
mov edx, dword [eax + edx]
mov ebp, dword [esp + 0x58]
mov ebp, dword [ebp + 4]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x5c]
mov edx, dword [edx + 4]
fmul dword [edx + eax]
add edx, eax
fld dword [esp + 0x2c]
add ebp, eax
fmul dword [ebp]
fsubp st(1)
fstp dword [esp + 0x14]
fld dword [esp + 0x2c]
fmul dword [edx]
mov edx, dword [esi]
fld dword [esp + 0x30]
fmul dword [ebp]
faddp st(1)
fstp dword [esp + 0x10]
fld dword [esp + 0x24]
fmul dword [0x4308a0]
fstp dword [esp + 0x18]
fld dword [esp + 0x20]
fmul dword [esp + 0x18]
fsubr dword [esp + 0x14]
fstp dword [esp + 0x14]
fld dword [esp + 0x1c]
fmul dword [esp + 0x18]
fsubr dword [esp + 0x10]
fstp dword [esp + 0x10]
fld dword [esp + 0x14]
fmul dword [esp + 0x24]
fmul dword [0x4308a0]
fadd dword [esp + 0x20]
fstp dword [eax + edx]
mov esi, dword [edi + 4]
fld dword [esp + 0x10]
mov edx, dword [ecx + 0x7f8]
fmul dword [esp + 0x24]
mov edx, dword [esi + edx*4]
mov esi, dword [esp + 0x54]
fmul dword [0x4308a0]
fadd dword [esp + 0x1c]
fstp dword [eax + edx]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x1c], edx
mov edx, dword [ecx + 0x7fc]
add edx, edx
add edx, edx
mov esi, dword [esi + 8]
mov ebp, dword [esi + edx]
mov ebp, dword [eax + ebp]
add esi, edx
mov dword [esp + 0x30], ebp
mov ebp, dword [edi + 8]
fld dword [esp + 0x30]
mov edx, dword [edx + ebp]
mov edx, dword [eax + edx]
mov ebp, dword [esp + 0x58]
mov ebp, dword [ebp + 8]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x5c]
mov edx, dword [edx + 8]
fmul dword [edx + eax]
add edx, eax
fld dword [esp + 0x2c]
add ebp, eax
fmul dword [ebp]
fsubp st(1)
fstp dword [esp + 0x14]
fld dword [esp + 0x2c]
fmul dword [edx]
mov edx, dword [esi]
fld dword [esp + 0x30]
fmul dword [ebp]
faddp st(1)
fstp dword [esp + 0x10]
fld dword [esp + 0x24]
fmul dword [0x4308a4]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fmul dword [esp + 0x20]
fsubr dword [esp + 0x14]
fstp dword [esp + 0x14]
fld dword [esp + 0x1c]
fmul dword [esp + 0x18]
fsubr dword [esp + 0x10]
fstp dword [esp + 0x10]
fld dword [esp + 0x14]
fmul dword [esp + 0x24]
fmul dword [0x4308a4]
fadd dword [esp + 0x20]
fstp dword [eax + edx]
mov edx, dword [ecx + 0x7fc]
fld dword [esp + 0x10]
mov esi, dword [edi + 8]
fmul dword [esp + 0x24]
mov edx, dword [esi + edx*4]
fmul dword [0x4308a4]
fadd dword [esp + 0x1c]
fstp dword [eax + edx]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x40]
mov esi, dword [esp + 0x48]
fld dword [esp + 0x20]
fmul dword [esi]
mov esi, dword [esp + 0x44]
mov ebp, dword [esp + 0x88]
add esi, 4
fstp dword [esi + ebp - 4]
mov ebp, dword [esp + 0x48]
fld dword [esp + 0x1c]
add edx, 4
fmul dword [ebp]
mov ebp, dword [esp + 0x8c]
add eax, 4
mov dword [esp + 0x44], esi
fstp dword [esi + ebp - 4]
mov ebp, dword [esp + 0x34]
add ebp, 1
cmp ebp, dword [esp + 0x38]
mov dword [esp + 0x34], ebp
mov dword [esp + 0x40], edx
jl 0x412900
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x4c]
add eax, 1
cmp eax, 0x16
mov dword [esp + 0x28], eax
jl 0x4127c0
mov edx, 1
add dword [ecx + 0x7e8], edx
xor esi, esi
cmp dword [ecx + 0x7e8], 2
jl 0x412d6d
mov dword [ecx + 0x7e8], esi
add dword [ecx + 0x7f4], edx
mov eax, dword [ecx + 0x7f4]
cmp eax, dword [ecx + 0x800]
jl 0x412d87
mov dword [ecx + 0x7f4], esi
add dword [ecx + 0x7f8], edx
mov eax, dword [ecx + 0x7f8]
cmp eax, dword [ecx + 0x804]
jl 0x412da1
mov dword [ecx + 0x7f8], esi
add dword [ecx + 0x7fc], edx
mov eax, dword [ecx + 0x7fc]
cmp eax, dword [ecx + 0x808]
jl 0x412dbb
mov dword [ecx + 0x7fc], esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x128
ret