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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
mov esi, str.APS_WVOL
mov dword [esp + 0x24], ebx
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40fb20
test cl, cl
je 0x40fb1c
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40fb20
add eax, 2
add esi, 2
test cl, cl
jne 0x40fafc
xor eax, eax
jmp 0x40fb25
sbb eax, eax
sbb eax, 0xffffffff
mov esi, dword [ebp + 0xc]
xor ecx, ecx
cmp eax, ebx
mov byte [edi], 0
mov eax, dword [esi + 0x24]
sete cl
cmp eax, ebx
mov dword [esp + 0x34], ecx
jne 0x40fb4b
cmp dword [esi + 0x28], ebx
jne 0x40fb4b
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
fld qword [esi + 0x30]
fcomp qword [0x550f20]
lea edi, [esi + 0x30]
fnstsw ax
test ah, 0x40
je 0x40fb6e
fld qword [esi + 0x38]
fcomp qword [0x550f20]
fnstsw ax
test ah, 0x40
jne 0x40fb9c
push 0xbff00000
push ebx
push edi
call fcn.00418af0
mov edx, dword [esi + 0x24]
push edi
push edx
call fcn.004a9e70
mov eax, dword [esi + 0x28]
push edi
push eax
call fcn.004a9e70
mov dword [edi], ebx
mov dword [esi + 0x38], ebx
add esp, 0x1c
mov dword [edi + 4], ebx
mov dword [esi + 0x3c], ebx
mov eax, dword [esi + 0x24]
cmp eax, ebx
je 0x40fbc2
push eax
call fcn.00488af0
mov edi, eax
add esp, 4
cmp edi, ebx
mov dword [esp + 0x20], edi
jne 0x40fbc8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor edi, edi
mov dword [esp + 0x20], edi
mov esi, dword [esi + 0x28]
cmp esi, ebx
je 0x40fbec
push esi
call fcn.00488af0
add esp, 4
cmp eax, ebx
mov dword [esp + 0x14], eax
jne 0x40fbf0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x14], ebx
cmp edi, ebx
je 0x40fc12
mov ebx, dword [esp + 0x20]
push ebx
mov dword [esp + 0x1c], ebx
call fcn.00488dc0
mov ecx, dword [esp + 0x18]
add esp, 4
mov dword [esp + 0x28], eax
mov dword [eax + 0x34], ecx
jmp 0x40fc1a
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x18], ebx
xor eax, eax
mov edi, ebx
test ebx, ebx
je 0x40fc89
mov ecx, dword [edi + 0xac]
test ecx, ecx
je 0x40fc65
mov esi, 0x56c78c
add ecx, 4
mov bl, byte [ecx]
mov dl, bl
cmp bl, byte [esi]
jne 0x40fc58
test dl, dl
je 0x40fc54
mov bl, byte [ecx + 1]
mov dl, bl
cmp bl, byte [esi + 1]
jne 0x40fc58
add ecx, 2
add esi, 2
test dl, dl
jne 0x40fc34
xor ecx, ecx
jmp 0x40fc5d
sbb ecx, ecx
sbb ecx, 0xffffffff
mov ebx, dword [esp + 0x18]
test ecx, ecx
jne 0x40fc82
test eax, eax
jne 0x40fc7c
mov edx, dword [ebp + 0x10]
add edx, 0x21
push edx
call fcn.00410220
add esp, 4
test eax, eax
je 0x40fc89
mov dword [edi + 0xac], eax
mov edi, dword [edi + 0x34]
test edi, edi
jne 0x40fc22
mov eax, dword [ebp + 0x10]
add eax, 0x54
mov ecx, dword [eax]
mov dword [esp + 0x38], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x3c], edx
fld qword [esp + 0x38]
fcomp qword [0x550f20]
mov ecx, dword [eax + 8]
mov dword [esp + 0x40], ecx
mov edx, dword [eax + 0xc]
fnstsw ax
mov dword [esp + 0x44], edx
test ah, 1
je 0x40fd20
test ebx, ebx
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0x3ff00000
mov esi, ebx
je 0x40fd16
lea eax, [esp + 0x58]
push eax
push esi
call fcn.004a9ea0
mov esi, dword [esi + 0x34]
add esp, 8
test esi, esi
jne 0x40fd01
fld qword [esp + 0x38]
fchs
fstp qword [esp + 0x38]
fld qword [esp + 0x40]
fcomp qword [0x550f20]
fnstsw ax
test ah, 1
je 0x40fd96
test ebx, ebx
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0x3ff00000
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov esi, ebx
je 0x40fd8c
lea ecx, [esp + 0x58]
push ecx
push esi
call fcn.004a9ea0
mov esi, dword [esi + 0x34]
add esp, 8
test esi, esi
jne 0x40fd77
fld qword [esp + 0x40]
fchs
fstp qword [esp + 0x40]
fld qword [esp + 0x38]
fsub qword [esp + 0x40]
fabs
fld qword [esp + 0x40]
fadd qword [esp + 0x38]
fmul qword [0x551298]
fcompp
fnstsw ax
test ah, 0x41
jne 0x40fe99
fld qword [esp + 0x38]
fcomp qword [0x550f30]
fnstsw ax
test ah, 0x40
jne 0x40fdec
test ebx, ebx
mov esi, ebx
je 0x40fdec
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
push edx
push eax
push esi
call fcn.004aa070
mov esi, dword [esi + 0x34]
add esp, 0xc
test esi, esi
jne 0x40fdd2
mov esi, dword [ebp + 0x10]
lea eax, [esi + 0x44]
push eax
push ebx
call fcn.004a9e70
mov ebx, dword [esp + 0x28]
xor eax, eax
add esp, 8
cmp ebx, eax
je 0x40fe0d
mov edx, dword [esp + 0x28]
mov dword [edx + 0x34], eax
mov ecx, dword [esi + 0x70]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], eax
mov eax, 1
cmp ecx, eax
mov dword [esp + 0x18], eax
jl 0x40ff9f
mov edi, dword [esp + 0x14]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x6c]
mov esi, 1
cmp ecx, esi
jl 0x40ff6f
cmp dword [esp + 0x18], 1
jg 0x40fe50
cmp esi, 1
jle 0x40ff39
test ebx, ebx
je 0x40fe6a
push ebx
call fcn.00488af0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40ff85
mov eax, dword [ebp + 0x10]
test edi, edi
je 0x40fe84
push edi
call fcn.00488af0
mov edi, eax
add esp, 4
test edi, edi
je 0x40ff85
mov eax, dword [ebp + 0x10]
cmp esi, 1
jle 0x40fed6
mov ecx, dword [eax + 0x74]
mov edx, dword [eax + 0x78]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], edx
jmp 0x40feef
test ebx, ebx
mov esi, ebx
je 0x40fdec
lea ecx, [esp + 0x38]
push ecx
push esi
call fcn.004aa120
add esp, 8
test eax, eax
jne 0x40fec1
mov esi, dword [esi + 0x34]
test esi, esi
jne 0x40fea3
jmp 0x40fdec
push ebx
call fcn.004888e0
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [eax + 0x6c]
mov ecx, 1
sub ecx, edx
mov dword [esp + 0x28], ecx
fild dword [esp + 0x28]
fmul qword [eax + 0x74]
fstp qword [esp + 0x48]
cmp esi, 1
jne 0x40ff0d
cmp dword [esp + 0x18], esi
jle 0x40ff0d
mov edx, dword [eax + 0x7c]
mov eax, dword [eax + 0x80]
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], eax
jmp 0x40ff1d
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
lea ecx, [esp + 0x48]
push ecx
push ebx
call fcn.004a9e70
lea edx, [esp + 0x50]
push edx
push edi
call fcn.004a9e70
mov eax, dword [ebp + 0x10]
add esp, 0x10
test ebx, ebx
je 0x40ff4e
lea eax, [esp + 0x10]
push ebx
push eax
call fcn.004894b0
mov eax, dword [ebp + 0x10]
add esp, 8
test edi, edi
je 0x40ff63
lea ecx, [esp + 0x1c]
push edi
push ecx
call fcn.004894b0
mov eax, dword [ebp + 0x10]
add esp, 8
mov ecx, dword [eax + 0x6c]
inc esi
cmp esi, ecx
jle 0x40fe40
mov ecx, dword [esp + 0x18]
mov edx, dword [eax + 0x70]
inc ecx
cmp ecx, edx
mov dword [esp + 0x18], ecx
jle 0x40fe30
jmp 0x40ff9c
push ebx
call fcn.004888e0
push edi
call fcn.004888e0
add esp, 8
mov dword [esp + 0x24], 1
mov esi, dword [ebp + 0x10]
fld qword [esi + 0x64]
fst qword [esp + 0x28]
fcomp qword [0x550f20]
fnstsw ax
test ah, 0x40
jne 0x40ffe1
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
lea edi, [esi + 0x44]
push edi
push edx
push eax
push ecx
call fcn.004a9d60
mov edx, dword [esi + 0x68]
mov eax, dword [esi + 0x64]
mov ecx, dword [esp + 0x2c]
push edi
push edx
push eax
push ecx
call fcn.004a9d60
add esp, 0x20
mov esi, dword [esp + 0x10]
test esi, esi
je 0x4100a1
mov edx, dword [ebp + 8]
lea ebx, [edx + 0x24]
lea eax, [esp + 0x10]
push eax
push esi
call fcn.00488bf0
mov edi, dword [ebx]
add esp, 8
test edi, edi
je 0x410051
mov eax, dword [esi + 0xa4]
cmp eax, dword [edi + 0xa4]
jne 0x410030
mov ecx, dword [edi]
mov edx, dword [esi]
xor ecx, edx
test cl, 0x40
jne 0x410030
mov edx, dword [esi + 0xac]
mov ecx, dword [edi + 0xac]
cmp edx, ecx
je 0x410039
mov edi, dword [edi + 0x34]
test edi, edi
jne 0x41000d
jmp 0x410051
mov eax, dword [ebp + 0x10]
push eax
push esi
call fcn.004100e0
push esi
push edi
call fcn.004895b0
add esp, 0x10
test edi, edi
jne 0x410095
mov eax, dword [esp + 0x34]
test eax, eax
je 0x410081
push esi
call fcn.00441c50
mov ecx, dword [ebp + 8]
mov eax, dword [esi]
add ecx, 0x28
or eax, 0x20000040
push esi
push ecx
mov dword [esi + 0x38], 8
mov dword [esi], eax
call fcn.004894b0
add esp, 0xc
jmp 0x410095
mov edx, dword [ebp + 0x10]
push edx
push esi
call fcn.004100e0
push esi
push ebx
call fcn.004894b0
add esp, 0x10
mov esi, dword [esp + 0x10]
test esi, esi
jne 0x40fff3
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x4100d1
mov edi, dword [ebp + 0x10]
push edi
push esi
call fcn.004100e0
mov esi, dword [esi + 0x34]
add esp, 8
test esi, esi
jne 0x4100ac
mov ecx, dword [ebp + 8]
mov eax, dword [esp + 0x1c]
add ecx, 0x28
push eax
push ecx
call fcn.004894b0
add esp, 8
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret