Function at 0x100199d0
Capabilities:
Check os version

Disassembly:
sub esp, 0xac
mov eax, dword [0x1005d330]
push esi
push str.psapi.dll
mov dword [esp + 0xb0], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
jne 0x10019a08
pop esi
mov ecx, dword [esp + 0xa8]
call fcn.10036c09
add esp, 0xac
ret
push ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.EnumProcessModules
push esi
call edi
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x14], ebp
jne 0x10019a38
pop edi
pop ebp
pop esi
mov ecx, dword [esp + 0xa8]
call fcn.10036c09
add esp, 0xac
ret
push ebx
push str.GetModuleFileNameExA
push esi
call edi
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x14], ebx
je 0x10019c5f
mov eax, dword [esp + 0xc8]
mov byte [eax], 0
mov ecx, dword [str.System]
mov dword [eax], ecx
mov dx, word [0x100509e0]
mov word [eax + 4], dx
mov cl, byte [0x100509e2]
lea edx, [esp + 0x24]
push edx
mov byte [eax + 6], cl
mov dword [esp + 0x28], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x34], 2
jne 0x10019b39
cmp dword [esp + 0x28], 5
jne 0x10019b39
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x10019b39
mov eax, dword [esp + 0xc0]
push eax
call fcn.100198f0
mov ecx, dword [esp + 0xc8]
add esp, 4
test eax, eax
mov dword [ecx], eax
je 0x10019c5f
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x10019c5f
lea edx, [esp + 0x14]
push edx
push 4
lea eax, [esp + 0x20]
push eax
push esi
mov dword [esp + 0x24], 0x400
call ebp
test eax, eax
je 0x10019b16
mov ecx, dword [esp + 0xcc]
mov edx, dword [esp + 0xc8]
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
pop ebp
mov eax, 1
pop esi
mov ecx, dword [esp + 0xa8]
call fcn.10036c09
add esp, 0xac
ret
push 0x10051e60
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
test ebp, ebp
je 0x10019c5f
push str.AllocateAndGetTcpExTableFromStack
push ebp
mov dword [esp + 0x18], 0
call edi
mov esi, eax
test esi, esi
jne 0x10019b70
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x10019c5f
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 2
push 0
call ebx
push eax
push 1
lea ecx, [esp + 0x20]
push ecx
call esi
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
xor esi, esi
test ecx, ecx
jbe 0x10019bc2
xor edi, edi
xor edx, edx
mov dx, word [edi + eax + 0xc]
push edx
call dword [sym.imp.WS2_32.dll_ntohs]
mov ecx, dword [esp + 0xc0]
movzx eax, ax
cmp eax, ecx
je 0x10019c78
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
inc esi
add edi, 0x18
cmp esi, ecx
jb 0x10019b94
push eax
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_FreeLibrary]
call ebp
push 0x10051e60
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x10019c5f
push str.AllocateAndGetUdpExTableFromStack
push edi
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x10019c5c
push 2
push 0
call ebx
push eax
push 1
lea edx, [esp + 0x20]
push edx
call esi
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
xor esi, esi
test ecx, ecx
jbe 0x10019c50
xor ebp, ebp
movzx eax, word [eax + ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx ecx, ax
cmp ecx, dword [esp + 0xc0]
mov eax, dword [esp + 0x10]
je 0x10019d11
mov ecx, dword [eax]
inc esi
add ebp, 0xc
cmp esi, ecx
jb 0x10019c20
mov ebp, dword [sym.imp.KERNEL32.dll_FreeLibrary]
push eax
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push edi
call ebp
pop ebx
pop edi
pop ebp
xor eax, eax
pop esi
mov ecx, dword [esp + 0xa8]
call fcn.10036c09
add esp, 0xac
ret
mov edx, dword [esp + 0x10]
lea ecx, [esi + esi*2 + 3]
mov eax, dword [edx + ecx*8]
mov ecx, dword [esp + 0xc4]
push eax
push 0
push 0x410
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x10019cde
lea edx, [esp + 0x1c]
push edx
push 4
lea eax, [esp + 0x28]
push eax
push esi
mov dword [esp + 0x2c], 0x400
call dword [esp + 0x28]
test eax, eax
je 0x10019cd7
mov ecx, dword [esp + 0xcc]
mov edx, dword [esp + 0xc8]
mov eax, dword [esp + 0x20]
push ecx
push edx
push eax
push esi
call dword [esp + 0x24]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x10]
push ecx
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop ebx
pop edi
pop ebp
mov eax, 1
pop esi
mov ecx, dword [esp + 0xa8]
call fcn.10036c09
add esp, 0xac
ret
mov ecx, dword [esp + 0xc4]
lea edx, [esi + esi*2 + 3]
mov eax, dword [eax + edx*4]
push eax
push 0
push 0x410
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x10019d73
lea edx, [esp + 0x20]
push edx
push 4
lea eax, [esp + 0x24]
push eax
push esi
mov dword [esp + 0x30], 0x400
call dword [esp + 0x28]
test eax, eax
je 0x10019d6c
mov ecx, dword [esp + 0xcc]
mov edx, dword [esp + 0xc8]
mov eax, dword [esp + 0x1c]
push ecx
push edx
push eax
push esi
call dword [esp + 0x24]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x10]
push ecx
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0xb8]
pop ebx
pop edi
pop ebp
mov eax, 1
pop esi
call fcn.10036c09
add esp, 0xac
ret