Function at 0x404cfc
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424ebd
mov eax, dword fs:[0]
push eax
sub esp, 0x294
mov eax, dword [0x42f058]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
and dword [ebp - 0x224], 0
lea eax, [ebp - 0x25c]
and dword [ebp - 0x228], 0
xor ebx, ebx
xor esi, esi
mov dword [ebp - 0x220], ebx
push eax
mov dword [ebp - 0x21c], esi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x258]
xor ecx, ecx
mov dword [0x430224], eax
inc ecx
mov eax, 0x10000
mov dword [0x430228], 0x3c
mov dword [0x430230], eax
mov dword [0x430238], eax
mov dword [0x430240], eax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x224]
mov dword [0x43022c], ecx
push eax
mov dword [0x430234], ecx
mov dword [0x43023c], ecx
mov dword [0x430244], ecx
call fcn.00404f95
mov edi, eax
test edi, edi
js 0x404f3c
cmp edi, 1
je 0x404f3a
cmp dword [ebp - 0x224], ebx
je 0x404dd7
xor edx, edx
xor ecx, ecx
call fcn.00405076
mov edi, eax
jmp 0x404f3c
cmp dword [ebp - 0x228], ebx
je 0x404ef1
push 0x44
pop edi
push edi
lea eax, [ebp - 0x2a0]
push 0
push eax
call fcn.004130e9
add esp, 0xc
mov dword [ebp - 0x2a0], edi
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x404e32
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x404f3c
push ecx
lea eax, [ebp - 0x220]
push eax
call 0x40f56f
mov ebx, dword [ebp - 0x220]
mov edi, eax
test edi, edi
js 0x404f3c
push ecx
push ecx
mov edx, ebx
lea ecx, [ebp - 0x218]
call fcn.0040f3ad
mov edi, eax
test edi, edi
js 0x404f3c
push 4
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push ebx
lea eax, [ebp - 0x21c]
push str.__s___standalone
push eax
call fcn.0040e86d
mov esi, dword [ebp - 0x21c]
mov edi, eax
add esp, 0xc
test edi, edi
js 0x404f3c
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x2a0]
push eax
xor eax, eax
push eax
push eax
push 0x20
push eax
push eax
push eax
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x404ed3
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x404f3c
push dword [ebp - 0x234]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x238]
call esi
mov esi, dword [ebp - 0x21c]
jmp 0x404f3c
and dword [ebp - 0x230], ebx
lea eax, [ebp - 0x238]
and dword [ebp - 0x22c], ebx
push eax
mov dword [ebp - 0x238], 0x42b670
mov dword [ebp - 0x234], 0x40cb43
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x404f3a
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x404f3c
xor edi, edi
cmp dword [0x430220], 0
je 0x404f4a
call fcn.00410de2
test esi, esi
je 0x404f5e
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebx, ebx
je 0x404f72
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041195e
mov esp, ebp
pop ebp
ret 0x10