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

Disassembly:
sub esp, 0x38
push ebx
push esi
mov esi, ecx
push edi
mov ecx, dword [esp + 0x4c]
xor ebx, ebx
xor edi, edi
mov dword [esp + 0xc], ebx
test ecx, ecx
jle 0x40716c
push ebp
mov eax, dword [esi + 0x40]
mov edx, ecx
mov ebp, 0x66
sub edx, edi
mov eax, dword [eax + 0xf0]
sub ebp, eax
cmp edx, ebp
jl 0x406a32
mov ebp, edi
sub ebp, eax
add ebp, 0x66
mov dword [esp + 0x18], ebp
jmp 0x406a38
mov dword [esp + 0x18], ecx
mov ebp, ecx
cmp edi, ebp
jge 0x406d3b
mov eax, dword [esp + 0x4c]
mov edx, ebp
sub edx, edi
lea ecx, [eax + edi*2]
movsx eax, word [ecx]
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x40]
fild dword [esp + 0x24]
fld st(0)
fmul st(1)
fadd dword [eax + 0xec]
fstp dword [eax + 0xec]
mov eax, dword [esi + 0x40]
mov ebx, dword [eax + 0x18]
fld dword [eax + 0x14]
mov dword [eax + 0x14], ebx
mov eax, dword [esi + 0x40]
fld dword [eax + 0x1c]
fmul dword [eax + 0x14]
fsub st(1)
fadd st(2)
fstp dword [eax + 0x18]
mov eax, dword [esi + 0x40]
fstp st(0)
mov ebx, dword [eax + 0x48]
fld dword [eax + 0x44]
mov dword [eax + 0x44], ebx
mov eax, dword [esi + 0x40]
fld dword [eax + 0x4c]
fmul dword [eax + 0x44]
fsub st(1)
fadd st(2)
fstp dword [eax + 0x48]
mov eax, dword [esi + 0x40]
fstp st(0)
mov ebx, dword [eax + 0x24]
fld dword [eax + 0x20]
mov dword [eax + 0x20], ebx
mov eax, dword [esi + 0x40]
fld dword [eax + 0x28]
fmul dword [eax + 0x20]
fsub st(1)
fadd st(2)
fstp dword [eax + 0x24]
mov eax, dword [esi + 0x40]
fstp st(0)
mov ebx, dword [eax + 0x54]
fld dword [eax + 0x50]
mov dword [eax + 0x50], ebx
mov eax, dword [esi + 0x40]
fld dword [eax + 0x58]
fmul dword [eax + 0x50]
fsub st(1)
fadd st(2)
fstp dword [eax + 0x54]
mov eax, dword [esi + 0x40]
fstp st(0)
mov ebx, dword [eax + 0x30]
fld dword [eax + 0x2c]
mov dword [eax + 0x2c], ebx
mov eax, dword [esi + 0x40]
fld dword [eax + 0x34]
fmul dword [eax + 0x2c]
fsub st(1)
fadd st(2)
fstp dword [eax + 0x30]
mov eax, dword [esi + 0x40]
fstp st(0)
mov ebx, dword [eax + 0x60]
fld dword [eax + 0x5c]
mov dword [eax + 0x5c], ebx
mov eax, dword [esi + 0x40]
fld dword [eax + 0x64]
fmul dword [eax + 0x5c]
fsub st(1)
fadd st(2)
fstp dword [eax + 0x60]
mov eax, dword [esi + 0x40]
fstp st(0)
mov ebx, dword [eax + 0x3c]
fld dword [eax + 0x38]
mov dword [eax + 0x38], ebx
mov eax, dword [esi + 0x40]
fld dword [eax + 0x40]
fmul dword [eax + 0x38]
fsub st(1)
fadd st(2)
fstp dword [eax + 0x3c]
mov eax, dword [esi + 0x40]
fstp st(0)
mov ebx, dword [eax + 0x6c]
fld dword [eax + 0x68]
mov dword [eax + 0x68], ebx
mov eax, dword [esi + 0x40]
fld dword [eax + 0x70]
fmul dword [eax + 0x68]
fsub st(1)
fadd st(2)
fstp dword [eax + 0x6c]
mov eax, dword [esi + 0x40]
fstp st(0)
mov ebx, dword [eax + 0xa8]
fld dword [eax + 0xa4]
mov dword [eax + 0xa4], ebx
mov eax, dword [esi + 0x40]
fld dword [eax + 0xac]
fmul dword [eax + 0xa4]
fsub st(1)
fadd st(2)
fstp dword [eax + 0xa8]
mov eax, dword [esi + 0x40]
fstp st(0)
mov ebx, dword [eax + 0x78]
fld dword [eax + 0x74]
mov dword [eax + 0x74], ebx
mov eax, dword [esi + 0x40]
fld dword [eax + 0x7c]
fmul dword [eax + 0x74]
fsub st(1)
fadd st(2)
fstp dword [eax + 0x78]
mov eax, dword [esi + 0x40]
fstp st(0)
mov ebx, dword [eax + 0xb4]
fld dword [eax + 0xb0]
mov dword [eax + 0xb0], ebx
mov eax, dword [esi + 0x40]
fld dword [eax + 0xb8]
fmul dword [eax + 0xb0]
fsub st(1)
fadd st(2)
fstp dword [eax + 0xb4]
mov eax, dword [esi + 0x40]
fstp st(0)
mov ebx, dword [eax + 0x84]
fld dword [eax + 0x80]
mov dword [eax + 0x80], ebx
mov eax, dword [esi + 0x40]
fld dword [eax + 0x88]
fmul dword [eax + 0x80]
fsub st(1)
fadd st(2)
fstp dword [eax + 0x84]
mov eax, dword [esi + 0x40]
fstp st(0)
mov ebx, dword [eax + 0xc0]
fld dword [eax + 0xbc]
mov dword [eax + 0xbc], ebx
mov eax, dword [esi + 0x40]
fld dword [eax + 0xc4]
fmul dword [eax + 0xbc]
fsub st(1)
fadd st(2)
fstp dword [eax + 0xc0]
mov eax, dword [esi + 0x40]
fstp st(0)
mov ebx, dword [eax + 0x90]
fld dword [eax + 0x8c]
mov dword [eax + 0x8c], ebx
mov eax, dword [esi + 0x40]
fld dword [eax + 0x94]
fmul dword [eax + 0x8c]
fsub st(1)
fadd st(2)
fstp dword [eax + 0x90]
fstp st(0)
mov eax, dword [esi + 0x40]
add ecx, 2
dec edx
mov ebx, dword [eax + 0xcc]
fld dword [eax + 0xc8]
mov dword [eax + 0xc8], ebx
mov eax, dword [esi + 0x40]
fld dword [eax + 0xd0]
fmul dword [eax + 0xc8]
fsub st(1)
fadd st(2)
fstp dword [eax + 0xcc]
mov eax, dword [esi + 0x40]
fstp st(0)
mov ebx, dword [eax + 0x9c]
fld dword [eax + 0x98]
mov dword [eax + 0x98], ebx
mov eax, dword [esi + 0x40]
fld dword [eax + 0xa0]
fmul dword [eax + 0x98]
fsub st(1)
fadd st(2)
fstp dword [eax + 0x9c]
mov eax, dword [esi + 0x40]
fstp st(0)
mov ebx, dword [eax + 0xd8]
fld dword [eax + 0xd4]
mov dword [eax + 0xd4], ebx
mov eax, dword [esi + 0x40]
fld dword [eax + 0xdc]
fmul dword [eax + 0xd4]
fsub st(1)
fadd st(2)
fstp dword [eax + 0xd8]
mov eax, dword [esi + 0x40]
fstp st(0)
mov ebx, dword [eax + 0xe4]
fld dword [eax + 0xd4]
mov dword [eax + 0xe0], ebx
mov eax, dword [esi + 0x40]
fld dword [eax + 0xe8]
fmul dword [eax + 0xe0]
fsub st(1)
fadd st(2)
fstp dword [eax + 0xe4]
fstp st(0)
fstp st(0)
jne 0x406a4b
mov ecx, dword [esp + 0x50]
mov ebx, dword [esp + 0x10]
mov eax, dword [esi + 0x40]
mov edx, ebp
sub edx, edi
mov edi, dword [eax + 0xf0]
add edi, edx
mov dword [eax + 0xf0], edi
mov eax, dword [esi + 0x40]
cmp dword [eax + 0xf0], 0x66
jl 0x407161
add eax, 0xd4
mov ecx, esi
push eax
call fcn.004069c0
mov eax, dword [esi + 0x40]
mov ecx, esi
fstp dword [esp + 0x14]
add eax, 0x14
push eax
call fcn.004069c0
mov ecx, dword [esi + 0x40]
fstp dword [esp + 0x38]
add ecx, 0x44
push ecx
mov ecx, esi
call fcn.004069c0
fstp dword [esp + 0x28]
xor eax, eax
xor edi, edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
mov ebp, 1
mov dword [esp + 0x1c], eax
mov ebx, 0xc
mov dword [esp + 0x10], edi
mov edx, dword [esi + 0x40]
mov ecx, esi
lea eax, [ebx + edx + 0x14]
push eax
call fcn.004069c0
mov ecx, dword [esp + 0x10]
fst dword [esp + edi + 0x3c]
fcomp dword [esp + ecx + 0x38]
fnstsw ax
test ah, 0x41
jne 0x406de0
lea edx, [edi + 4]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x10], edx
mov eax, dword [esi + 0x40]
lea ecx, [ebx + eax + 0x44]
push ecx
mov ecx, esi
call fcn.004069c0
mov edx, dword [esp + 0x1c]
fst dword [esp + edi + 0x2c]
fcomp dword [esp + edx + 0x28]
fnstsw ax
test ah, 0x41
jne 0x406e0d
lea eax, [edi + 4]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x1c], eax
add edi, 4
inc ebp
add ebx, 0xc
cmp edi, 0xc
jl 0x406db3
mov ebp, dword [esp + 0x20]
xor ebx, ebx
mov dword [esp + 0x10], ebx
fld dword [esp + ebp*4 + 0x38]
fcomp qword [0x423040]
fnstsw ax
test ah, 1
jne 0x406fd0
mov edi, dword [esp + 0x24]
fld dword [esp + edi*4 + 0x28]
fcomp qword [0x423040]
fnstsw ax
test ah, 1
jne 0x406fd0
fld dword [esp + edi*4 + 0x28]
fld dword [esp + ebp*4 + 0x38]
fmul qword [0x423038]
fcompp
fnstsw ax
test ah, 0x41
jne 0x406fd0
fld dword [esp + edi*4 + 0x28]
fmul qword [0x423030]
fld dword [esp + ebp*4 + 0x38]
fcompp
fnstsw ax
test ah, 1
je 0x406fd0
xor ecx, ecx
cmp ecx, edi
je 0x406ea4
fld dword [esp + ecx*4 + 0x28]
fmul qword [0x423028]
fld dword [esp + edi*4 + 0x28]
fcompp
fnstsw ax
test ah, 1
jne 0x406ec7
cmp ecx, ebp
je 0x406ebf
fld dword [esp + ecx*4 + 0x38]
fmul qword [0x423028]
fld dword [esp + ebp*4 + 0x38]
fcompp
fnstsw ax
test ah, 1
jne 0x406ec7
inc ecx
cmp ecx, 4
jl 0x406e89
jmp 0x406ed0
cmp ecx, 4
jl 0x406fd0
mov ecx, dword [esi + 0x40]
fld dword [esp + edi*4 + 0x28]
fadd dword [esp + ebp*4 + 0x38]
fld dword [ecx + 0xec]
fmul qword [0x423020]
fcompp
fnstsw ax
test ah, 1
je 0x406fd0
lea edx, [edi + edi*2]
lea eax, [ecx + edx*4 + 0xa4]
mov ecx, esi
push eax
call fcn.004069c0
fmul qword [0x423018]
fld dword [esp + edi*4 + 0x28]
fcompp
fnstsw ax
test ah, 0x41
jne 0x406fd0
mov edx, dword [esi + 0x40]
lea ecx, [ebp + ebp*2]
lea eax, [edx + ecx*4 + 0x74]
mov ecx, esi
push eax
call fcn.004069c0
fmul qword [0x423010]
fld dword [esp + ebp*4 + 0x38]
fcompp
fnstsw ax
test ah, 0x41
jne 0x406fd0
mov eax, dword [esi + 0x40]
lea ecx, [edi + ebp*4]
movsx ebx, byte [ecx + 0x427b38]
mov edi, dword [eax + 8]
mov dword [esp + 0x10], ebx
cmp ebx, edi
jne 0x406fcc
cmp edi, dword [eax + 4]
je 0x406fcc
mov dword [eax + 0x10], ebx
mov edx, dword [esi + 0x40]
mov ebp, dword [edx + ecx*4 + 0x184]
lea eax, [edx + ecx*4 + 0x184]
inc ebp
mov dword [eax], ebp
mov eax, dword [esi + 0x40]
mov edi, dword [eax + 0x17c]
inc edi
mov dword [eax + 0x17c], edi
mov eax, dword [esi + 0x40]
mov ecx, dword [eax + 0x178]
cmp ecx, 0x80
jge 0x406fc6
mov byte [ecx + eax + 0xf4], bl
mov eax, dword [esi + 0x40]
mov ecx, dword [eax + 0x178]
inc ecx
mov dword [eax + 0x178], ecx
mov eax, dword [esi + 0x40]
mov ecx, dword [eax + 0x178]
mov byte [ecx + eax + 0xf4], 0
jmp 0x406fcc
inc dword [eax + 0x180]
test ebx, ebx
jne 0x407032
fld dword [esp + 0x14]
fcomp qword [0x423040]
fnstsw ax
test ah, 1
jne 0x407032
mov ecx, dword [esi + 0x40]
fld dword [esp + 0x14]
fld dword [ecx + 0xec]
fmul qword [0x423008]
fcompp
fnstsw ax
test ah, 1
je 0x407032
add ecx, 0xe0
push ecx
mov ecx, esi
call fcn.004069c0
fadd st(0), st(0)
fld dword [esp + 0x14]
fcompp
fnstsw ax
test ah, 0x41
jne 0x4070a3
mov eax, dword [esi + 0x40]
mov ebx, 0x66
mov dword [esp + 0x10], ebx
inc dword [eax + 0x1c4]
jmp 0x4070a3
mov eax, dword [esi + 0x40]
cmp dword [eax + 0x1c4], 5
jle 0x407096
mov dword [eax + 0x10], 0x66
mov eax, dword [esi + 0x40]
mov edi, dword [eax + 0x17c]
inc edi
mov dword [eax + 0x17c], edi
mov eax, dword [esi + 0x40]
mov ecx, dword [eax + 0x178]
cmp ecx, 0x80
jge 0x407090
mov byte [ecx + eax + 0xf4], bl
mov eax, dword [esi + 0x40]
mov ecx, dword [eax + 0x178]
inc ecx
mov dword [eax + 0x178], ecx
mov eax, dword [esi + 0x40]
mov edx, dword [eax + 0x178]
mov byte [edx + eax + 0xf4], 0
jmp 0x407096
inc dword [eax + 0x180]
mov eax, dword [esi + 0x40]
mov dword [eax + 0x1c4], 0
mov eax, dword [esi + 0x40]
xor edi, edi
lea ebp, [esi + 0x54]
mov ecx, dword [eax + 4]
mov dword [eax], ecx
mov eax, dword [esi + 0x40]
mov edx, dword [eax + 8]
mov dword [eax + 4], edx
mov eax, dword [esi + 0x40]
mov dword [eax + 8], ebx
mov edx, dword [esi + 0x40]
lea ecx, [ebp - 0x10]
push ecx
mov ecx, esi
lea eax, [edi + edx + 0x14]
push eax
call fcn.004069a0
mov ecx, dword [esi + 0x40]
push ebp
lea edx, [edi + ecx + 0x44]
mov ecx, esi
push edx
call fcn.004069a0
mov ecx, dword [esi + 0x40]
lea eax, [ebp + 0x10]
push eax
lea edx, [edi + ecx + 0x74]
mov ecx, esi
push edx
call fcn.004069a0
mov ecx, dword [esi + 0x40]
lea eax, [ebp + 0x20]
push eax
lea edx, [edi + ecx + 0xa4]
mov ecx, esi
push edx
call fcn.004069a0
add edi, 0xc
add ebp, 4
cmp edi, 0x30
jl 0x4070bf
mov ecx, dword [esi + 0x40]
lea eax, [esi + 0x84]
add ecx, 0xd4
push eax
push ecx
mov ecx, esi
call fcn.004069a0
mov eax, dword [esi + 0x40]
lea edx, [esi + 0x88]
add eax, 0xe0
push edx
push eax
mov ecx, esi
call fcn.004069a0
mov ecx, dword [esi + 0x40]
mov ebp, dword [esp + 0x18]
xor eax, eax
mov dword [ecx + 0xec], eax
mov edx, dword [esi + 0x40]
mov ecx, dword [esp + 0x50]
mov dword [edx + 0xf0], eax
cmp ebp, ecx
mov edi, ebp
jl 0x406a0d
pop ebp
mov esi, dword [esi + 0x40]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x407185
cmp eax, ebx
jne 0x407185
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x38
ret 8
mov dword [esi + 0x10], 0
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x38
ret 8