Function at 0x8f7bfef
Capabilities:
Check os version
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call fcn.08f7364c
mov esi, dword [ebp + 0x24]
test eax, eax
jne 0x8f7c01c
mov dword [ebp + 0x1c], 0x80004005
mov ebx, dword [ebp + 0x18]
jmp 0x8f7c285
cmp esi, edi
je 0x8f7c513
cmp dword [ebp + 0x1c], edi
je 0x8f7c513
cmp dword [esi], 0x50
jne 0x8f7c513
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x8f7c168
push 0
push 0
push 0x8f7184c
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x8f7c168
push 0x8f71830
call fcn.08f79ccc
mov edi, eax
test edi, edi
je 0x8f7c11f
push 0x8f71820
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x8f7c0b8
lea ecx, [ebp - 8]
push ecx
push 0
call eax
test eax, eax
jne 0x8f7c0ed
mov eax, dword [0x8f8c004]
cmp eax, 0x8f8c004
je 0x8f7c0ed
test byte [eax + 0x1c], 8
je 0x8f7c0ed
cmp byte [eax + 0x19], 2
jb 0x8f7c0ed
call ebx
push eax
push 0x8f715cc
push 0x8d
jmp 0x8f7c0dd
mov eax, dword [0x8f8c004]
cmp eax, 0x8f8c004
je 0x8f7c0ed
test byte [eax + 0x1c], 8
je 0x8f7c0ed
cmp byte [eax + 0x19], 2
jb 0x8f7c0ed
call ebx
push eax
push 0x8f715cc
push 0x8e
mov eax, dword [0x8f8c004]
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.08f72d3f
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
jne 0x8f7c158
mov eax, dword [0x8f8c004]
cmp eax, 0x8f8c004
je 0x8f7c158
test byte [eax + 0x1c], 8
je 0x8f7c158
cmp byte [eax + 0x19], 2
jb 0x8f7c158
call ebx
push eax
push 0x8f715cc
push 0x8f
jmp 0x8f7c148
mov eax, dword [0x8f8c004]
cmp eax, 0x8f8c004
je 0x8f7c158
test byte [eax + 0x1c], 8
je 0x8f7c158
cmp byte [eax + 0x19], 2
jb 0x8f7c158
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x8f715cc
push 0x90
mov eax, dword [0x8f8c004]
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.08f72d3f
cmp dword [ebp - 8], 0
je 0x8f7c168
mov eax, 0x80004004
jmp 0x8f7c336
lea ecx, [esi + 0x1c]
and dword [ecx], 0
lea eax, [esi + 0x18]
and dword [eax], 0
push ecx
push eax
mov dword [esi + 0x14], 1
call fcn.08f7e3be
test eax, eax
je 0x8f7c1b3
mov eax, dword [0x8f8c004]
cmp eax, 0x8f8c004
je 0x8f7c1b3
test byte [eax + 0x1c], 8
je 0x8f7c1b3
cmp byte [eax + 0x19], 2
jb 0x8f7c1b3
push 0x8f715cc
push 0x91
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.08f72d19
mov ebx, dword [ebp + 0x18]
test ebx, ebx
jne 0x8f7c217
push 0x50
pop edi
push edi
call fcn.08f83725
mov ebx, eax
test ebx, ebx
jne 0x8f7c202
mov eax, dword [0x8f8c004]
cmp eax, 0x8f8c004
je 0x8f7c1f6
test byte [eax + 0x1c], 8
je 0x8f7c1f6
cmp byte [eax + 0x19], 2
jb 0x8f7c1f6
push 0x8f715cc
push 0x92
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.08f72d19
mov dword [ebp + 0x1c], 0x80070008
jmp 0x8f7c285
push edi
push 0
push ebx
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebx], edi
mov dword [ebp - 4], 1
test byte [ebp + 0xc], 0x10
jne 0x8f7c22e
lea eax, [ebx + 0x38]
push eax
lea eax, [ebx + 0x34]
push eax
call fcn.08f7e53e
or dword [ebp - 4], 2
cmp dword [ebx + 4], 0
jne 0x8f7c366
push 0x18
pop esi
push esi
call fcn.08f83725
mov edi, eax
mov dword [ebx + 4], edi
test edi, edi
jne 0x8f7c33d
mov eax, dword [0x8f8c004]
cmp eax, 0x8f8c004
je 0x8f7c27b
test byte [eax + 0x1c], 8
je 0x8f7c27b
cmp byte [eax + 0x19], 2
jb 0x8f7c27b
push 0x8f715cc
push 0x93
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.08f72d19
mov dword [ebp + 0x1c], 0x80070008
mov esi, dword [ebp + 0x24]
call fcn.08f7d622
test byte [ebp - 4], 2
je 0x8f7c29c
push dword [ebx + 0x38]
call fcn.08f837bd
and dword [ebx + 0x38], 0
test byte [ebp - 4], 4
je 0x8f7c2d4
xor edi, edi
cmp dword [ebx + 8], edi
jbe 0x8f7c2c1
and dword [ebp + 0x18], edi
mov esi, dword [ebx + 0xc]
add esi, dword [ebp + 0x18]
call fcn.08f75848
add dword [ebp + 0x18], 0x44
inc edi
cmp edi, dword [ebx + 8]
jb 0x8f7c2ac
push dword [ebx + 0xc]
call fcn.08f837bd
and dword [ebx + 0xc], 0
and dword [ebx + 8], 0
mov esi, dword [ebp + 0x24]
xor edi, edi
test byte [ebp - 4], 8
je 0x8f7c2fd
cmp dword [esi + 4], edi
je 0x8f7c2f2
mov eax, dword [ebx + 4]
push dword [eax + 8]
call fcn.08f837bd
mov eax, dword [ebx + 4]
mov dword [eax + 8], edi
push dword [ebx + 4]
call fcn.08f837bd
mov dword [ebx + 4], edi
test byte [ebp - 4], 0x10
je 0x8f7c31b
mov eax, dword [ebx + 0x10]
cmp eax, edi
je 0x8f7c31b
push eax
call sub.FXSAPI.dll_FaxFreeSenderInformation
push dword [ebx + 0x10]
call fcn.08f837bd
mov dword [ebx + 0x10], edi
test byte [ebp - 4], 1
je 0x8f7c327
push ebx
call fcn.08f837bd
push edi
push edi
call fcn.08f86b9b
call fcn.08f72f42
mov eax, dword [ebp + 0x1c]
pop edi
pop esi
pop ebx
leave
ret 0x20
xor eax, eax
push 6
pop ecx
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 4]
mov dword [eax], esi
mov eax, dword [ebx + 4]
mov dword [eax + 4], 1
mov eax, dword [ebx + 4]
add eax, 8
push eax
call fcn.08f7e20c
or dword [ebp - 4], 8
mov esi, dword [ebp + 0x24]
cmp dword [ebx + 0x10], 0
jne 0x8f7c3cc
push 0x44
pop edi
push edi
call fcn.08f83725
mov dword [ebx + 0x10], eax
test eax, eax
jne 0x8f7c3af
mov eax, dword [0x8f8c004]
cmp eax, 0x8f8c004
je 0x8f7c1f6
test byte [eax + 0x1c], 8
je 0x8f7c1f6
cmp byte [eax + 0x19], 2
jb 0x8f7c1f6
push 0x8f715cc
push 0x94
jmp 0x8f7c1eb
push edi
push 0
push eax
call sub.msvcrt.dll_memset
mov eax, dword [ebx + 0x10]
add esp, 0xc
mov dword [eax], edi
push dword [ebx + 0x10]
call sub.FXSAPI.dll_FaxGetSenderInformation
or dword [ebp - 4], 0x10
push esi
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.08f7bbd0
xor edi, edi
cmp eax, edi
mov dword [ebp + 0x1c], eax
jl 0x8f7c282
push dword [esi + 0x38]
push dword [esi + 0x34]
call fcn.08f7e077
cmp dword [esi + 8], edi
je 0x8f7c40d
push dword [esi + 0x4c]
push dword [esi + 0xc]
call fcn.08f7e173
cmp dword [esi + 0x14], edi
je 0x8f7c41a
push dword [esi + 0x10]
call sub.FXSAPI.dll_FaxSetSenderInformation
push dword [esi + 0x1c]
push dword [esi + 0x18]
call fcn.08f7e44b
test eax, eax
je 0x8f7c456
mov eax, dword [0x8f8c004]
cmp eax, 0x8f8c004
je 0x8f7c456
test byte [eax + 0x1c], 8
je 0x8f7c456
cmp byte [eax + 0x19], 2
jb 0x8f7c456
push 0x8f715cc
push 0x95
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.08f72d19
mov eax, dword [esi + 4]
cmp eax, edi
je 0x8f7c504
mov eax, dword [eax + 8]
cmp eax, edi
je 0x8f7c504
push eax
call fcn.08f7e32d
mov eax, dword [esi + 4]
cmp dword [eax + 0xc], edi
je 0x8f7c282
push 0x5c
push dword [eax + 8]
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
cmp eax, edi
je 0x8f7c282
mov ecx, dword [esi + 4]
mov edx, dword [ecx + 8]
mov ecx, edx
lea edi, [ecx + 2]
mov si, word [ecx]
inc ecx
inc ecx
test si, si
jne 0x8f7c49e
sub ecx, edi
add eax, 2
sar ecx, 1
push eax
inc ecx
push ecx
push edx
call fcn.08f765c2
mov dword [ebp + 0x1c], eax
test eax, eax
jge 0x8f7c282
mov eax, dword [0x8f8c004]
cmp eax, 0x8f8c004
je 0x8f7c282
test byte [eax + 0x1c], 8
je 0x8f7c282
cmp byte [eax + 0x19], 2
jb 0x8f7c282
push dword [ebp + 0x1c]
push 0x8f715cc
push 0x96
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.08f72d3f
jmp 0x8f7c282
push 0x8f71600
call fcn.08f7e32d
jmp 0x8f7c285
mov eax, dword [0x8f8c004]
cmp eax, 0x8f8c004
je 0x8f7c540
test byte [eax + 0x1c], 8
je 0x8f7c540
cmp byte [eax + 0x19], 2
jb 0x8f7c540
push 0x8f715cc
push 0x8c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.08f72d19
mov dword [ebp + 0x1c], 0x80070057
jmp 0x8f7c014