Function at 0x49664b
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe4
mov dword [ebp - 0x30], 0
mov dword [ebp - 0xd4], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3e0]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x7c], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
and edx, 0xff
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x10]
and eax, 0xffff
sar eax, 8
and eax, 0xff
and eax, 0xff
mov dword [ebp - 4], eax
cmp dword [ebp - 0x44], 4
jne 0x4966e5
cmp dword [ebp - 4], 0x5a
jne 0x4966e5
mov dword [ebp - 0x70], 1
cmp dword [ebp - 0x44], 4
jne 0x4966f8
cmp dword [ebp - 4], 0x5a
jne 0x4966f8
mov dword [ebp - 0x7c], 1
cmp dword [ebp - 0x44], 4
jne 0x49670b
cmp dword [ebp - 4], 0
jne 0x49670b
mov dword [ebp - 0x58], 1
cmp dword [ebp - 0x10], 0x80000000
jae 0x49672e
mov ecx, dword [ebp - 0x10]
shr ecx, 0x10
and ecx, 0xffff
and ecx, 0xffff
mov dword [ebp - 0x94], ecx
jmp 0x49675b
cmp dword [ebp - 0x44], 4
jae 0x496751
mov edx, dword [ebp - 0x10]
shr edx, 0x10
and edx, 0xffff
and edx, 0xffff
and dh, 0x7f
mov dword [ebp - 0x94], edx
jmp 0x49675b
mov dword [ebp - 0x94], 0
cmp dword [ebp - 0x94], 0x565
ja 0x49676e
mov dword [ebp - 0x40], 1
cmp dword [0x4e3700], 0
jne 0x49677c
call fcn.00496511
cmp dword [0x4e36f8], 0
je 0x496798
cmp dword [0x4e36fc], 0
je 0x496798
mov dword [ebp - 0x88], 1
cmp dword [ebp - 0x88], 0
je 0x4967ae
cmp dword [ebp - 0x58], 1
jne 0x4967ae
mov dword [ebp - 0x40], 1
cmp dword [ebp - 0x88], 0
je 0x4967c4
cmp dword [ebp - 0x7c], 1
jne 0x4967c4
mov dword [ebp - 0x40], 0
cmp dword [ebp - 0x88], 0
je 0x4967da
cmp dword [ebp - 0x70], 1
jne 0x4967da
mov dword [ebp - 0x40], 0
cmp dword [ebp - 0x88], 0
je 0x49682c
cmp dword [ebp - 0x40], 0
jne 0x49682c
mov dword [ebp - 0x5c], 5
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x5c]
push ecx
call fcn.004961a4
add esp, 8
mov dword [ebp - 0x8c], eax
push 0x3c
push 0x4e37e0
lea edx, [ebp - 0xd0]
push edx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, dword [0x4e381c]
mov dword [ebp - 0xd4], eax
jmp 0x496a6b
push str.NETAPI32.Dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x496848
or eax, 0xffffffff
jmp 0x496b98
push str.NetWkstaTransportEnum
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x84], eax
push str.NetApiBufferFree
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x84], 0
je 0x49687e
cmp dword [ebp - 0x80], 0
jne 0x496886
or eax, 0xffffffff
jmp 0x496b98
push 0
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x18]
push ecx
push 0x1000
lea edx, [ebp - 8]
push edx
push 0
push 0
call dword [ebp - 0x84]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4968be
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
or eax, 0xffffffff
jmp 0x496b98
mov dword [ebp - 0x68], 0
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x3c], ecx
jmp 0x4968df
mov edx, dword [ebp - 0x68]
add edx, 1
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x3c]
add eax, 0x14
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x68]
cmp ecx, dword [ebp - 0x18]
jae 0x496a5a
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x78], 0
jmp 0x496906
mov ecx, dword [ebp - 0x78]
add ecx, 1
mov dword [ebp - 0x78], ecx
cmp dword [ebp - 0x78], 0xc
jge 0x49691e
mov edx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x6c]
mov al, byte [ecx + eax*2]
mov byte [ebp + edx - 0x2c], al
jmp 0x4968fd
mov dword [ebp - 0x78], 0
jmp 0x496930
mov ecx, dword [ebp - 0x78]
add ecx, 1
mov dword [ebp - 0x78], ecx
cmp dword [ebp - 0x78], 6
jge 0x496a3b
call dword [sym.imp.MSVCRT.dll___p___mb_cur_max]
cmp dword [eax], 1
jle 0x496961
push 4
mov edx, dword [ebp - 0x78]
movsx eax, byte [ebp + edx*2 - 0x2c]
push eax
call dword [sym.imp.MSVCRT.dll__isctype]
add esp, 8
mov dword [ebp - 0xd8], eax
jmp 0x496980
call dword [sym.imp.MSVCRT.dll___p__pctype]
mov ecx, dword [ebp - 0x78]
movsx edx, byte [ebp + ecx*2 - 0x2c]
mov eax, dword [eax]
xor ecx, ecx
mov cx, word [eax + edx*2]
and ecx, 4
mov dword [ebp - 0xd8], ecx
cmp dword [ebp - 0xd8], 0
je 0x49699c
mov edx, dword [ebp - 0x78]
movsx eax, byte [ebp + edx*2 - 0x2c]
sub eax, 0x30
mov dword [ebp - 0xdc], eax
jmp 0x4969ad
mov ecx, dword [ebp - 0x78]
movsx edx, byte [ebp + ecx*2 - 0x2c]
sub edx, 0x37
mov dword [ebp - 0xdc], edx
call dword [sym.imp.MSVCRT.dll___p___mb_cur_max]
cmp dword [eax], 1
jle 0x4969d4
push 4
mov eax, dword [ebp - 0x78]
movsx ecx, byte [ebp + eax*2 - 0x2b]
push ecx
call dword [sym.imp.MSVCRT.dll__isctype]
add esp, 8
mov dword [ebp - 0xe0], eax
jmp 0x4969f3
call dword [sym.imp.MSVCRT.dll___p__pctype]
mov edx, dword [ebp - 0x78]
movsx ecx, byte [ebp + edx*2 - 0x2b]
mov edx, dword [eax]
xor eax, eax
mov ax, word [edx + ecx*2]
and eax, 4
mov dword [ebp - 0xe0], eax
cmp dword [ebp - 0xe0], 0
je 0x496a0f
mov ecx, dword [ebp - 0x78]
movsx edx, byte [ebp + ecx*2 - 0x2b]
sub edx, 0x30
mov dword [ebp - 0xe4], edx
jmp 0x496a20
mov eax, dword [ebp - 0x78]
movsx ecx, byte [ebp + eax*2 - 0x2b]
sub ecx, 0x37
mov dword [ebp - 0xe4], ecx
mov edx, dword [ebp - 0xdc]
shl edx, 4
add edx, dword [ebp - 0xe4]
mov eax, dword [ebp - 0x78]
mov byte [ebp + eax - 0x64], dl
jmp 0x496927
lea ecx, [ebp - 0x64]
push ecx
lea edx, [ebp - 0xd4]
push edx
lea eax, [ebp - 0xd0]
push eax
call fcn.0048d4df
add esp, 0xc
jmp 0x4968cd
mov ecx, dword [ebp - 8]
push ecx
call dword [ebp - 0x80]
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x68], 0
jmp 0x496a84
mov eax, dword [ebp - 0x68]
add eax, 1
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x68]
cmp ecx, dword [ebp - 0xd4]
jge 0x496b86
cmp dword [ebp - 0x1c], 0
je 0x496b0d
mov dword [ebp - 0x1c], 0
push 6
mov edx, dword [ebp - 0x68]
imul edx, edx, 6
lea eax, [ebp + edx - 0xd0]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x3e0]
add edx, 8
push edx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3e0]
mov word [ecx + 2], 2
push 6
mov edx, dword [ebp - 0x68]
imul edx, edx, 6
lea eax, [ebp + edx - 0xd0]
push eax
mov ecx, dword [0x4e36d4]
imul ecx, ecx, 6
add ecx, 0x4e3fe0
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov edx, dword [0x4e36d4]
add edx, 1
mov dword [0x4e36d4], edx
jmp 0x496b81
call fcn.004772ee
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x74]
mov word [eax + 2], 2
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x74]
mov dword [ecx + 0x38], edx
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x34], eax
push 6
mov ecx, dword [ebp - 0x68]
imul ecx, ecx, 6
lea edx, [ebp + ecx - 0xd0]
push edx
mov eax, dword [ebp - 0x34]
add eax, 8
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push 6
mov ecx, dword [ebp - 0x68]
imul ecx, ecx, 6
lea edx, [ebp + ecx - 0xd0]
push edx
mov eax, dword [0x4e36d4]
imul eax, eax, 6
add eax, 0x4e3fe0
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov ecx, dword [0x4e36d4]
add ecx, 1
mov dword [0x4e36d4], ecx
jmp 0x496a7b
cmp dword [ebp - 0xd4], 0
je 0x496b96
mov eax, 1
jmp 0x496b98
xor eax, eax
mov esp, ebp
pop ebp
ret