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

Disassembly:
mov eax, 0x5cd8f8
call fcn.005a39e4
sub esp, 0x1c
push ebx
push esi
push edi
push pe_nt_image_headers32
mov dword [ebp - 0x10], ecx
call fcn.005bca7e
pop ecx
mov dword [ebp - 0x24], eax
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 4], ebx
je 0x40f25f
mov ecx, eax
call fcn.0040deae
mov ebx, eax
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
push 8
lea edi, [ebx + 8]
pop ecx
mov esi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 0x24]
test ecx, ecx
mov dword [ebp - 0x14], ebx
jne 0x40f27e
xor esi, esi
jmp 0x40f28e
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x28]
sub eax, ecx
push 0x70
cdq
pop ecx
idiv ecx
mov esi, eax
mov eax, esi
imul eax, eax, 0x54
push eax
mov dword [ebx + 0x28], esi
call fcn.005bca7e
pop ecx
mov dword [ebp - 0x18], eax
test eax, eax
mov dword [ebp - 4], 1
je 0x40f2d4
mov edi, eax
lea eax, [esi - 1]
test eax, eax
jl 0x40f2cf
inc eax
mov dword [ebp - 0x1c], eax
mov ecx, edi
call fcn.0040fab8
lea ecx, [edi + 0x18]
call fcn.0040fab8
add edi, 0x54
dec dword [ebp - 0x1c]
jne 0x40f2b8
mov eax, dword [ebp - 0x18]
jmp 0x40f2d6
xor eax, eax
or dword [ebp - 4], 0xffffffff
test esi, esi
mov dword [ebx + 0x48], eax
jle 0x40f53b
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ecx + 0x24]
and dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], esi
mov ecx, dword [ebp - 0x1c]
fld dword [0x5d7bb8]
mov edx, dword [ebp - 0x18]
fld dword [0x5d7bb4]
fld dword [0x5d78a8]
lea esi, [ecx + ebx + 0xc]
fld dword [ecx + ebx + 0x40]
mov edi, edx
movsd dword es:[edi], dword [esi]
fmul st(3)
movsd dword es:[edi], dword [esi]
fcomp st(1)
movsd dword es:[edi], dword [esi]
fnstsw ax
sahf
movsd dword es:[edi], dword [esi]
lea esi, [ecx + ebx + 0x30]
lea edi, [edx + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jae 0x40f333
fldz
jmp 0x40f34a
fld dword [ecx + ebx + 0x40]
fmul st(3)
fcomp st(2)
fnstsw ax
sahf
jbe 0x40f344
fld st(1)
jmp 0x40f34a
fld dword [ecx + ebx + 0x40]
fmul st(3)
fistp qword [ebp - 0x28]
mov al, byte [ebp - 0x28]
mov byte [edx + 0x2a], al
fld dword [ecx + ebx + 0x44]
fmul st(3)
fcomp st(1)
fnstsw ax
sahf
jae 0x40f364
fldz
jmp 0x40f37b
fld dword [ecx + ebx + 0x44]
fmul st(3)
fcomp st(2)
fnstsw ax
sahf
jbe 0x40f375
fld st(1)
jmp 0x40f37b
fld dword [ecx + ebx + 0x44]
fmul st(3)
fistp qword [ebp - 0x28]
mov al, byte [ebp - 0x28]
mov byte [edx + 0x29], al
fld dword [ecx + ebx + 0x48]
fmul st(3)
fcomp st(1)
fnstsw ax
sahf
jae 0x40f395
fldz
jmp 0x40f3ac
fld dword [ecx + ebx + 0x48]
fmul st(3)
fcomp st(2)
fnstsw ax
sahf
jbe 0x40f3a6
fld st(1)
jmp 0x40f3ac
fld dword [ecx + ebx + 0x48]
fmul st(3)
fistp qword [ebp - 0x28]
mov al, byte [ebp - 0x28]
mov byte [edx + 0x28], al
fld dword [ecx + ebx + 0x4c]
fmul st(3)
fcomp st(1)
fnstsw ax
sahf
jae 0x40f3c6
fldz
jmp 0x40f3dd
fld dword [ecx + ebx + 0x4c]
fmul st(3)
fcomp st(2)
fnstsw ax
sahf
jbe 0x40f3d7
fld st(1)
jmp 0x40f3dd
fld dword [ecx + ebx + 0x4c]
fmul st(3)
fistp qword [ebp - 0x28]
mov al, byte [ebp - 0x28]
mov byte [edx + 0x2b], al
fld dword [ecx + ebx + 0x50]
fmul st(3)
fcomp st(1)
fnstsw ax
sahf
jae 0x40f3f7
fldz
jmp 0x40f40e
fld dword [ecx + ebx + 0x50]
fmul st(3)
fcomp st(2)
fnstsw ax
sahf
jbe 0x40f408
fld st(1)
jmp 0x40f40e
fld dword [ecx + ebx + 0x50]
fmul st(3)
fistp qword [ebp - 0x28]
mov al, byte [ebp - 0x28]
mov byte [edx + 0x2e], al
fld dword [ecx + ebx + 0x54]
fmul st(3)
fcomp st(1)
fnstsw ax
sahf
jae 0x40f428
fldz
jmp 0x40f43f
fld dword [ecx + ebx + 0x54]
fmul st(3)
fcomp st(2)
fnstsw ax
sahf
jbe 0x40f439
fld st(1)
jmp 0x40f43f
fld dword [ecx + ebx + 0x54]
fmul st(3)
fistp qword [ebp - 0x28]
mov al, byte [ebp - 0x28]
mov byte [edx + 0x2d], al
fld dword [ecx + ebx + 0x58]
fmul st(3)
fcomp st(1)
fnstsw ax
sahf
jae 0x40f459
fldz
jmp 0x40f470
fld dword [ecx + ebx + 0x58]
fmul st(3)
fcomp st(2)
fnstsw ax
sahf
jbe 0x40f46a
fld st(1)
jmp 0x40f470
fld dword [ecx + ebx + 0x58]
fmul st(3)
fistp qword [ebp - 0x28]
mov al, byte [ebp - 0x28]
mov byte [edx + 0x2c], al
fld dword [ecx + ebx + 0x5c]
fmul st(3)
fcomp st(1)
fnstsw ax
fstp st(0)
sahf
jae 0x40f490
fstp st(0)
fstp st(0)
fldz
jmp 0x40f4b1
fld dword [ecx + ebx + 0x5c]
fmul st(2)
fcomp st(1)
fnstsw ax
fstp st(0)
sahf
jbe 0x40f4a9
fstp st(0)
fld dword [0x5d7bb4]
jmp 0x40f4b1
fld dword [ecx + ebx + 0x5c]
fmul st(1)
fstp st(1)
fistp qword [ebp - 0x28]
mov al, byte [ebp - 0x28]
mov byte [edx + 0x2f], al
fld dword [ecx + ebx + 0x2c]
fstp dword [edx + 0x10]
fld dword [ecx + ebx + 0x2c]
fcomp qword [0x5d7ce0]
fnstsw ax
sahf
jb 0x40f4d5
mov ecx, dword [ecx + ebx]
jmp 0x40f4d9
mov ecx, dword [ecx + ebx + 4]
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
lea eax, [esi + 0x30]
push eax
mov dword [esi + 0x14], ecx
push 2
lea ecx, [edi + ebx]
call fcn.004115f5
mov byte [esi + 0x50], al
lea eax, [esi + 0x38]
push eax
push 3
lea ecx, [edi + ebx]
call fcn.004115f5
mov byte [esi + 0x51], al
lea eax, [esi + 0x40]
push eax
push 4
lea ecx, [edi + ebx]
call fcn.004115f5
mov byte [esi + 0x52], al
lea eax, [esi + 0x48]
push eax
push 5
lea ecx, [edi + ebx]
call fcn.004115f5
mov byte [esi + 0x53], al
add edi, 0x70
add esi, 0x54
dec dword [ebp - 0x20]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], esi
jne 0x40f2f5
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
mov edx, edi
mov ecx, esi
call fcn.0040f12e
mov ecx, edi
call fcn.0040dffa
mov eax, dword [esi + 0x44]
test eax, eax
jne 0x40f55c
xor ebx, ebx
jmp 0x40f564
mov ebx, dword [esi + 0x48]
sub ebx, eax
sar ebx, 4
test ebx, ebx
mov dword [edi + 0x58], ebx
je 0x40f5a1
lea eax, [ebx + ebx*2]
shl eax, 2
push eax
call fcn.005bca7e
test eax, eax
pop ecx
je 0x40f59a
lea edx, [ebx - 1]
test edx, edx
jl 0x40f59c
lea ecx, [eax + 8]
inc edx
and dword [ecx - 8], 0
or dword [ecx - 4], 0xffffffff
and dword [ecx], 0
add ecx, 0xc
dec edx
jne 0x40f587
jmp 0x40f59c
xor eax, eax
mov dword [edi + 0x60], eax
jmp 0x40f5a5
and dword [edi + 0x60], 0
test ebx, ebx
jle 0x40f63a
mov eax, dword [ebp - 0x10]
mov edi, dword [eax + 0x44]
mov eax, dword [ebp - 0x14]
and dword [ebp - 0x18], 0
mov esi, dword [eax + 0x60]
mov dword [ebp - 0x20], ebx
mov ecx, dword [ebp - 0x18]
xor eax, eax
cmp dword [edi + ecx], eax
je 0x40f5d5
mov eax, ecx
push dword [edi + eax]
call fcn.005a763f
pop ecx
mov dword [esi], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [edi + eax + 8]
mov dword [esi + 8], eax
mov ebx, dword [esi]
push ebx
lea ecx, [ebp - 0x1c]
call fcn.005bcdab
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 2
call fcn.005bd286
push 0x5fc820
push 0x5fc814
lea ecx, [ebp - 0x1c]
call fcn.005ba948
push ebx
call fcn.005a3d51
push dword [ebp - 0x1c]
call fcn.005a763f
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
lea ecx, [ebp - 0x1c]
mov dword [esi], eax
call fcn.005bcd3d
add dword [ebp - 0x18], 0x10
add esi, 0xc
dec dword [ebp - 0x20]
jne 0x40f5c0
mov esi, dword [ebp - 0x10]
mov ecx, dword [esi + 0x54]
test ecx, ecx
jne 0x40f645
xor esi, esi
jmp 0x40f654
mov eax, dword [esi + 0x58]
sub eax, ecx
cdq
mov ecx, 0x8c
idiv ecx
mov esi, eax
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x5c], esi
mov eax, esi
imul eax, eax, 0x88
push eax
call fcn.005bca7e
mov ebx, eax
test ebx, ebx
pop ecx
je 0x40f692
lea eax, [esi - 1]
test eax, eax
mov edi, ebx
jl 0x40f68e
inc eax
mov dword [ebp - 0x20], eax
mov ecx, edi
call fcn.0040fa79
add edi, 0x88
dec dword [ebp - 0x20]
jne 0x40f67c
mov edx, ebx
jmp 0x40f694
xor edx, edx
test esi, esi
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x64], edx
jle 0x40f7b3
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x54]
xor ecx, ecx
mov dword [ebp - 0x18], edx
add edx, 0x50
mov dword [ebp - 0x20], esi
fld dword [eax + ecx + 0x84]
lea esi, [eax + ecx + 0x50]
fstp dword [edx + 0x30]
mov edi, edx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [eax + ecx + 0x70]
lea edi, [edx + 0x20]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov bl, byte [eax + ecx + 0x88]
lea esi, [eax + ecx + 0x60]
lea edi, [edx + 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov byte [edx + 0x34], bl
mov bl, byte [eax + ecx + 0x89]
mov esi, dword [ebp - 0x18]
mov byte [edx + 0x35], bl
mov bl, byte [eax + ecx]
mov byte [esi], bl
mov bl, byte [eax + ecx + 1]
mov esi, dword [eax + ecx + 0x10]
mov byte [edx - 0x4f], bl
mov dword [edx - 0x40], esi
mov esi, dword [eax + ecx + 4]
mov dword [edx - 0x4c], esi
mov esi, dword [eax + ecx + 8]
mov dword [edx - 0x48], esi
mov esi, dword [eax + ecx + 0xc]
mov bl, byte [eax + ecx + 0x14]
mov dword [edx - 0x44], esi
mov esi, dword [eax + ecx + 0x24]
mov byte [edx - 0x3c], bl
mov bl, byte [eax + ecx + 0x15]
mov byte [edx - 0x3b], bl
mov dword [edx - 0x2c], esi
mov esi, dword [eax + ecx + 0x18]
mov bl, byte [eax + ecx + 0x3c]
mov dword [edx - 0x38], esi
mov esi, dword [eax + ecx + 0x1c]
mov dword [edx - 0x34], esi
mov esi, dword [eax + ecx + 0x20]
mov dword [edx - 0x30], esi
mov esi, dword [eax + ecx + 0x4c]
mov byte [edx - 0x14], bl
mov bl, byte [eax + ecx + 0x3d]
mov byte [edx - 0x13], bl
mov bl, byte [eax + ecx + 0x28]
mov dword [edx - 4], esi
mov esi, dword [eax + ecx + 0x40]
mov dword [edx - 0x10], esi
mov esi, dword [eax + ecx + 0x44]
mov dword [edx - 0xc], esi
mov esi, dword [eax + ecx + 0x48]
mov dword [edx - 8], esi
mov esi, dword [eax + ecx + 0x38]
mov byte [edx - 0x28], bl
mov bl, byte [eax + ecx + 0x29]
mov byte [edx - 0x27], bl
mov dword [edx - 0x18], esi
mov esi, dword [eax + ecx + 0x2c]
mov dword [edx - 0x24], esi
mov esi, dword [eax + ecx + 0x30]
mov dword [edx - 0x20], esi
mov esi, dword [eax + ecx + 0x34]
mov dword [edx - 0x1c], esi
mov esi, 0x88
add dword [ebp - 0x18], esi
add ecx, 0x8c
add edx, esi
dec dword [ebp - 0x20]
jne 0x40f6b3
mov edi, dword [ebp - 0x10]
mov ecx, dword [edi + 0x74]
test ecx, ecx
jne 0x40f7c1
xor esi, esi
jmp 0x40f7d0
mov eax, dword [edi + 0x78]
sub eax, ecx
cdq
mov ecx, 0x9c
idiv ecx
mov esi, eax
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x34], esi
lea eax, [esi + esi*8]
shl eax, 4
add eax, 4
push eax
mov dword [ebp - 0x10], esi
call fcn.005bca7e
pop ecx
mov dword [ebp - 0x24], eax
test eax, eax
mov dword [ebp - 4], 3
je 0x40f816
push 0x40f9ae
push 0x40fa29
push esi
lea ebx, [eax + 4]
push 0x90
push ebx
mov dword [eax], esi
call fcn.005a47b0
mov ecx, ebx
jmp 0x40f818
xor ecx, ecx
test esi, esi
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], ecx
mov dword [eax + 0x54], ecx
jle 0x40f887
mov ebx, dword [edi + 0x74]
mov dword [ebp - 0x18], ecx
add ecx, 0x50
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], esi
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
mov dword [ecx], eax
lea eax, [ebx + 0x5c]
push 0x10
pop ecx
lea esi, [eax - 0x40]
lea edi, [edx - 0x40]
rep movsd dword es:[edi], dword [esi]
mov esi, eax
push 0x10
xor eax, eax
cmp dword [ebx + 0x14], eax
pop ecx
mov edi, edx
rep movsd dword es:[edi], dword [esi]
je 0x40f865
push dword [ebx + 0x14]
call fcn.005a763f
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ecx - 0x44], eax
mov eax, 0x90
add dword [ebp - 0x18], eax
add dword [ebp - 0x1c], eax
add ebx, 0x9c
dec dword [ebp - 0x20]
jne 0x40f834
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x24]
xor edi, edi
test esi, esi
jle 0x40f8d0
mov ebx, ecx
mov eax, dword [ebx]
test eax, eax
jl 0x40f8c5
lea eax, [eax + eax*8]
shl eax, 4
lea edx, [eax + ecx + 4]
mov eax, dword [edx]
test eax, eax
jge 0x40f8a9
mov dword [edx], edi
jmp 0x40f8c5
lea edx, [eax + eax*8]
shl edx, 4
mov edx, dword [edx + ecx + 8]
test edx, edx
jl 0x40f8bb
mov eax, edx
jmp 0x40f8a9
lea eax, [eax + eax*8]
shl eax, 4
mov dword [eax + ecx + 8], edi
inc edi
add ebx, 0x90
cmp edi, esi
jl 0x40f88f
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
and dword [eax + 0x6c], 0
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret