Function at 0x417fc0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b67d2
mov eax, dword fs:[0]
push eax
sub esp, 0x1ec
mov eax, dword [0x4dc04c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
push 0x54
lea eax, [ebp - 0x1d0]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.00449530
lea eax, [ebp - 0x1d0]
push eax
push esi
push dword [ebp + 8]
call fcn.00417370
add esp, 0x18
test eax, eax
je 0x418027
mov esi, 2
jmp 0x41878f
push 0x374
push 0
push 0x4df560
call fcn.00449530
add esp, 0xc
push 0x4df8d4
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x4df560
call fcn.00418890
sub esp, 0x14
mov ecx, esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x41806d
mov eax, dword [ecx]
jmp 0x41806f
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x1ac]
push 0
push eax
call fcn.00407e60
call fcn.004166b0
add esp, 0x18
lea eax, [ebp - 0x174]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x160]
cmp eax, 0x20
jae 0x4180bb
mov ecx, 0x20
sub ecx, eax
mov eax, dword [0x4dfa78]
not eax
shl eax, cl
shr eax, cl
mov dword [0x4dfa78], eax
jmp 0x4180c0
mov eax, dword [0x4dfa78]
test eax, eax
je 0x4180d7
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push dword [0x4dfa78]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadAffinityMask]
lea ecx, [ebp - 0x1e0]
call fcn.00415260
mov eax, dword [ebp - 0x1e0]
mov byte [ebp - 4], 1
test eax, eax
je 0x418105
mov esi, 1
cmp eax, 0x2710
jge 0x41878f
jmp 0x41876f
lea eax, [ebp - 0x194]
mov dword [ebp - 0x1d4], 0x416810
push eax
lea eax, [ebp - 0x1d4]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00414f30
push eax
lea eax, [ebp - 0x1dc]
mov byte [ebp - 4], 2
push eax
call fcn.00414bd0
mov eax, dword [ebp - 0x18]
add esp, 0x14
test eax, eax
je 0x41814a
push eax
lea ecx, [ebp - 0x18]
call fcn.004156d0
mov eax, dword [ebp - 0x1d8]
mov byte [ebp - 4], 3
test eax, eax
jne 0x418168
push 1
call fcn.0042c6d4
mov eax, dword [ebp - 0x1d8]
add esp, 4
push eax
push dword [ebp - 0x1dc]
call fcn.0042b72f
add esp, 8
test eax, eax
je 0x418184
push eax
call fcn.0042c6a7
add esp, 4
push reloc.WS2_32.dll_closesocket
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_SetThreadExecutionState]
push 0x104
lea eax, [ebp - 0x11c]
push 0
push eax
call fcn.00449530
add esp, 0xc
lea eax, [ebp - 0x11c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp dword [ebp - 0x198], 0x10
lea eax, [ebp - 0x1ac]
lea ecx, [ebp - 0x150]
cmovae eax, dword [ebp - 0x1ac]
push eax
call fcn.00406c10
lea eax, [ebp - 0x11c]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x138]
call fcn.00406c10
lea eax, [ebp - 0x150]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x138]
push eax
call fcn.00415c70
mov eax, dword [ebp - 0x124]
add esp, 8
cmp eax, 0x10
jb 0x41822b
inc eax
lea ecx, [ebp - 0x138]
push eax
push dword [ebp - 0x138]
call fcn.00404c20
mov eax, dword [ebp - 0x13c]
mov dword [ebp - 0x124], 0xf
mov dword [ebp - 0x128], 0
mov byte [ebp - 0x138], 0
mov byte [ebp - 4], 1
cmp eax, 0x10
jb 0x418268
inc eax
lea ecx, [ebp - 0x150]
push eax
push dword [ebp - 0x150]
call fcn.00404c20
cmp dword [ebp - 0x198], 0x10
lea eax, [ebp - 0x1ac]
lea ecx, [ebp - 0x1f8]
cmovae eax, dword [ebp - 0x1ac]
push eax
call fcn.00406c10
lea eax, [ebp - 0x11c]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x138]
call fcn.00406c10
mov dword [ebp - 0x13c], 0xf
mov dword [ebp - 0x140], 0
mov byte [ebp - 0x150], 0
lea eax, [ebp - 0x150]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x1f8]
push eax
lea eax, [ebp - 0x138]
push eax
call fcn.00415730
mov eax, dword [ebp - 0x13c]
add esp, 0xc
cmp eax, 0x10
jb 0x4182f8
inc eax
lea ecx, [ebp - 0x150]
push eax
push dword [ebp - 0x150]
call fcn.00404c20
mov eax, dword [ebp - 0x124]
cmp eax, 0x10
jb 0x418316
inc eax
lea ecx, [ebp - 0x138]
push eax
push dword [ebp - 0x138]
call fcn.00404c20
mov eax, dword [ebp - 0x1e4]
mov dword [ebp - 0x124], 0xf
mov dword [ebp - 0x128], 0
mov byte [ebp - 0x138], 0
mov byte [ebp - 4], 1
cmp eax, 0x10
jb 0x418353
inc eax
lea ecx, [ebp - 0x1f8]
push eax
push dword [ebp - 0x1f8]
call fcn.00404c20
push dword [ebp - 0x1b8]
mov ecx, 0x4df980
mov dword [ebp - 0x17c], 0
push dword [ebp - 0x1bc]
mov dword [ebp - 0x178], 0
mov byte [ebp - 0x11d], 0
call fcn.004097b0
lea eax, [ebp - 0x1d4]
push 0x417c30
push eax
call fcn.00414fe0
push eax
lea eax, [ebp - 0x1dc]
mov byte [ebp - 4], 9
push eax
call fcn.00414ca0
mov eax, dword [ebp - 0x1d4]
add esp, 0x10
test eax, eax
je 0x4183be
push 4
push eax
call fcn.0042874e
add esp, 8
mov eax, dword [ebp - 0x1d8]
mov byte [ebp - 4], 0xa
test eax, eax
jne 0x4183dc
push 1
call fcn.0042c6d4
mov eax, dword [ebp - 0x1d8]
add esp, 4
push eax
push dword [ebp - 0x1dc]
call fcn.0042b72f
add esp, 8
test eax, eax
je 0x4183f8
push eax
call fcn.0042c6a7
add esp, 4
push dword [ebp - 0x1d0]
xor eax, eax
mov byte [ebp - 4], 1
mov dword [0x4df8ec], eax
mov word [0x4df8f0], ax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov edx, eax
mov dword [ebp - 0x124], 0xf
mov dword [ebp - 0x128], 0
mov byte [ebp - 0x138], 0
cmp byte [edx], 0
jne 0x41843b
xor ecx, ecx
jmp 0x418449
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x418440
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x138]
call fcn.00407f90
push 0x4dfa7c
lea eax, [ebp - 0x138]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0x150]
push eax
call fcn.00416970
add esp, 0xc
cmp dword [ebp - 0x140], 0
mov byte [ebp - 4], 0xc
jne 0x4184a1
lea ecx, [ebp - 0x150]
call fcn.00403f90
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 1
call fcn.00403f90
jmp 0x4186ba
cmp dword [ebp - 0x13c], 0x10
lea eax, [ebp - 0x150]
mov byte [ebp - 0x18], 0
cmovae eax, dword [ebp - 0x150]
push eax
mov dword [ebp - 0x17], 0
mov byte [ebp - 0x13], 0
call fcn.00415e90
add esp, 4
mov dword [ebp - 0x1d8], edx
mov ecx, eax
or eax, edx
jne 0x4184f8
lea ecx, [ebp - 0x150]
call fcn.00403f90
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 1
call fcn.00403f90
jmp 0x4186ba
mov ax, word [ebp - 0x1d8]
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x11d]
push eax
mov dword [ebp - 0x18], ecx
call fcn.00411460
cmp dword [ebp - 0x13c], 0x10
lea eax, [ebp - 0x150]
cmovae eax, dword [ebp - 0x150]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1d0]
push eax
call fcn.00414440
add esp, 0x10
test al, al
jne 0x41855d
lea ecx, [ebp - 0x150]
call fcn.00403f90
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 1
call fcn.00403f90
jmp 0x4186ba
lea eax, [ebp - 0x11d]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x1c0]
push 0x2710
call fcn.00414300
add esp, 0x10
test al, al
jne 0x41859e
lea ecx, [ebp - 0x150]
call fcn.00403f90
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 1
call fcn.00403f90
jmp 0x4186ba
lea eax, [ebp - 0x178]
push eax
lea eax, [ebp - 0x17c]
push eax
push 0x413e80
push 0x4e1840
call fcn.00414000
add esp, 0x10
test al, al
je 0x4185e1
lea ecx, [ebp - 0x150]
call fcn.00403f90
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 1
call fcn.00403f90
jmp 0x4186ba
lea eax, [ebp - 0x1d0]
push eax
call fcn.00417090
mov eax, dword [ebp - 0x13c]
add esp, 4
mov byte [0x4dfa7c], 1
mov byte [ebp - 4], 0xb
cmp eax, 0x10
jb 0x41864b
mov ecx, dword [ebp - 0x150]
inc eax
cmp eax, 0x1000
jb 0x418642
test cl, 0x1f
je 0x41861e
call fcn.00454301
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x41862a
call fcn.00454301
sub ecx, eax
cmp ecx, 4
jae 0x418636
call fcn.00454301
cmp ecx, 0x23
jbe 0x418640
call fcn.00454301
mov ecx, eax
push ecx
call fcn.00428749
add esp, 4
mov eax, dword [ebp - 0x124]
mov dword [ebp - 0x13c], 0xf
mov dword [ebp - 0x140], 0
mov byte [ebp - 0x150], 0
mov byte [ebp - 4], 1
cmp eax, 0x10
jb 0x4186ba
mov ecx, dword [ebp - 0x138]
inc eax
cmp eax, 0x1000
jb 0x4186b1
test cl, 0x1f
je 0x41868d
call fcn.00454301
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x418699
call fcn.00454301
sub ecx, eax
cmp ecx, 4
jae 0x4186a5
call fcn.00454301
cmp ecx, 0x23
jbe 0x4186af
call fcn.00454301
mov ecx, eax
push ecx
call fcn.00428749
add esp, 4
push dword [ebp - 0x178]
push dword [ebp - 0x17c]
push 0x4e1840
call fcn.00414140
add esp, 0xc
call fcn.00414400
call fcn.004144f0
cmp dword [ebp - 0x198], 0x10
lea eax, [ebp - 0x1ac]
lea ecx, [ebp - 0x138]
cmovae eax, dword [ebp - 0x1ac]
push eax
call fcn.00406c10
lea eax, [ebp - 0x11c]
mov byte [ebp - 4], 0xd
push eax
lea ecx, [ebp - 0x1f8]
call fcn.00406c10
lea eax, [ebp - 0x138]
mov byte [ebp - 4], 0xe
push eax
lea eax, [ebp - 0x1f8]
push eax
call fcn.00415c70
add esp, 8
lea ecx, [ebp - 0x1f8]
call fcn.00403f90
lea ecx, [ebp - 0x138]
call fcn.00403f90
push closesocket
call dword [sym.imp.KERNEL32.dll_SetThreadExecutionState]
push 0x4df8d4
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push 0x374
push 0
push 0x4df560
call fcn.00449530
add esp, 0xc
xor esi, esi
call dword [sym.imp.WS2_32.dll_WSACleanup]
cmp eax, 0xffffffff
je 0x41878f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00467b4a
push eax
call fcn.0046af7f
add esp, 8
lea ecx, [ebp - 0x1d0]
call fcn.00415620
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00428705
mov esp, ebp
pop ebp
ret