Function at 0x405901
Capabilities:
Get system information on windows
Terminate process

Disassembly:
push 0
call fcn.00404475
push 0x69
call fcn.004089b4
push eax
push 1
call fcn.0040890a
add esp, 0x10
push 0
call dword [sym.imp.MSVCR80.dll_exit]
int3
push ebp
lea ebp, [esp - 0x84]
sub esp, 0x84
push 0xfffffffffffffffe
push 0x415c58
push 0x40bd2b
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x417c2c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x80], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov ebx, dword [ebp + 0x90]
mov dword [ebp - 0x38], ebx
xor edi, edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], edi
call fcn.00409a88
push 2
call fcn.00409917
push dword [0x41783c]
call fcn.00409923
push 0x8b
call fcn.004089b4
push eax
call fcn.0040992f
push 0x414f46
push edi
call dword [sym.imp.MSVCR80.dll_setlocale]
add esp, 0x18
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [ebp - 4], edi
call fcn.00409285
call fcn.00409f9c
test eax, eax
je 0x4059aa
call fcn.0040a6d7
push 0x414dd0
push edi
lea eax, [ebp - 0x24]
push eax
mov esi, dword [sym.imp.MSVCR80.dll__wdupenv_s]
call esi
push str._CL_
push edi
lea eax, [ebp - 0x28]
push eax
call esi
push 1
push dword [ebp - 0x24]
call fcn.00408360
mov ecx, eax
mov dword [ebp - 0x3c], ecx
call fcn.00401c94
mov dword [ebp - 0x20], eax
push 1
push dword [ebp - 0x28]
call fcn.00408360
mov ecx, eax
mov dword [ebp - 0x40], ecx
call fcn.00401c94
mov dword [ebp - 0x34], eax
push dword [ebp - 0x24]
mov esi, dword [sym.imp.MSVCR80.dll_free]
call esi
mov dword [ebp - 0x24], edi
push dword [ebp - 0x28]
call esi
mov dword [ebp - 0x28], edi
call fcn.00402112
mov dword [ebx], eax
push dword [0x417030]
push eax
call fcn.00404455
add esp, 0x38
mov esi, dword [ebp + 0x8c]
cmp esi, 1
jne 0x405a37
cmp dword [ebp - 0x20], edi
jne 0x405a37
jmp 0x4053dd
push dword [ebp - 0x20]
push dword [ebp - 0x3c]
call fcn.00402e9a
lea eax, [esi - 1]
mov dword [ebp - 0x1c], eax
lea ecx, [ebx + 4]
mov dword [ebp - 0x2c], ecx
push eax
push ecx
call fcn.00402e9a
push dword [ebp - 0x34]
push dword [ebp - 0x40]
call fcn.00402e9a
add esp, 0x18
cmp dword [0x419168], edi
jne 0x405a7b
call fcn.00409f9c
test eax, eax
jne 0x405a7b
push edi
call fcn.00404475
pop ecx
call fcn.00404328
call fcn.00401e0a
call fcn.00402898
cmp dword [0x419e40], edi
je 0x405a9f
push dword [ebp - 0x1c]
push dword [ebp - 0x2c]
call fcn.004055de
pop ecx
pop ecx
push ebx
push esi
call fcn.00401d7d
push 0x18
mov ebx, 0x417840
call fcn.004051c2
add esp, 0xc
call fcn.00401f05
mov dword [0x417024], edi
mov dword [0x419128], 1
cmp dword [ebp - 0x20], edi
jle 0x405ae3
cmp dword [0x4188d8], edi
jne 0x405ae3
push dword [ebp - 0x20]
mov ebx, dword [ebp - 0x3c]
call fcn.004051c2
pop ecx
cmp esi, 1
jle 0x405af4
push dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x2c]
call fcn.004051c2
pop ecx
cmp dword [ebp - 0x34], edi
jle 0x405b05
push dword [ebp - 0x34]
mov ebx, dword [ebp - 0x40]
call fcn.004051c2
pop ecx
mov dword [0x419128], edi
cmp dword [0x419144], edi
je 0x405b21
push 0x41498c
push 2
call fcn.0040890a
pop ecx
pop ecx
call fcn.00403640
push dword [0x417030]
call fcn.0040239c
pop ecx
cmp dword [0x419140], edi
je 0x405b3f
call fcn.00404576
cmp dword [0x41919c], edi
je 0x405b4c
call fcn.00408cec
cmp dword [0x419e3c], edi
je 0x405b5a
mov dword [0x419e48], edi
cmp dword [0x419124], edi
je 0x405c09
call fcn.00403eba
mov eax, dword [0x418918]
add eax, 0xffffffd0
cmp ax, 9
ja 0x405c09
push 4
mov ebx, str.1PAT
push ebx
mov esi, 0x418918
push esi
push str.clrver
call fcn.0040182a
push eax
push dword [0x417030]
call fcn.00401886
or eax, 0xffffffff
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x50]
push eax
push str._d._d._d._d
push esi
call dword [sym.imp.MSVCR80.dll_swscanf_s]
push dword [ebp - 0x48]
push dword [ebp - 0x4c]
push dword [ebp - 0x50]
push str.__CLR_VER_d_02d_05d
push 0x40
lea eax, [ebp]
push eax
call dword [sym.imp.MSVCR80.dll_swprintf_s]
add esp, 0x48
push 4
push ebx
lea eax, [ebp]
push eax
push 0x4149b8
call fcn.0040182a
push eax
push dword [0x417030]
call fcn.00401886
add esp, 0x18
cmp dword [0x419138], edi
jne 0x405c4f
cmp dword [0x419124], edi
je 0x405c2f
cmp dword [0x419e5c], edi
je 0x405c28
mov ecx, 0x41792c
jmp 0x405c41
mov ecx, 0x41791c
jmp 0x405c41
cmp dword [0x419e5c], edi
mov ecx, 0x417934
jne 0x405c41
mov ecx, 0x417924
call fcn.00401c94
push eax
mov ebx, ecx
call fcn.004051c2
pop ecx
cmp dword [0x419148], edi
je 0x405c97
cmp dword [0x419118], edi
je 0x405c97
mov esi, dword [0x419180]
mov dword [ebp - 0x2c], edi
mov dword [0x419180], 1
push edi
lea eax, [ebp - 0x2c]
push eax
mov ecx, 0x417b9c
call fcn.00401c94
push eax
push ecx
call fcn.00404be5
add esp, 0x10
mov dword [0x419180], esi
mov dword [0x419118], edi
mov eax, dword [0x41916c]
cmp eax, edi
je 0x405cc3
cmp dword [0x419184], 2
jl 0x405cb9
push eax
push 0x412214
push 0x1f64
call fcn.00408a41
mov dword [0x419e4c], 1
call fcn.00409911
cmp eax, 3
jne 0x405ce7
call fcn.0040993b
test al, al
jne 0x405ce7
push 0x414e98
push 0x2354
call fcn.00408ab3
pop ecx
pop ecx
mov ecx, dword [0x4191a4]
cmp ecx, edi
je 0x405d18
mov eax, dword [0x419170]
cmp eax, edi
je 0x405d18
push eax
push ecx
call dword [sym.imp.MSVCR80.dll_wcscmp]
pop ecx
pop ecx
test eax, eax
jne 0x405d18
push dword [0x419170]
push 0x1f69
call fcn.00408a41
call fcn.00405867
mov eax, dword [0x417030]
cmp dword [eax + 0x20], edi
jne 0x405d37
call fcn.00402066
mov ecx, dword [0x417030]
mov dword [ecx + 0x20], eax
jmp 0x405d3d
mov dword [0x41702c], edi
mov esi, dword [0x419194]
mov edi, dword [sym.imp.MSVCR80.dll_wcslen]
xor ebx, ebx
mov dword [ebp - 0x5c], esi
cmp esi, ebx
je 0x405dc0
cmp dword [esi + 0x10], ebx
je 0x405dac
push dword [esi + 0x10]
call edi
mov ebx, eax
push dword [esi + 0xc]
call edi
lea ebx, [ebx + eax + 2]
lea eax, [ebx + ebx]
push eax
call fcn.00408299
mov dword [ebp - 0x1c], eax
push dword [esi + 0xc]
push ebx
push eax
call fcn.00407fb8
push dword [esi + 0x10]
mov ecx, eax
sub ecx, dword [ebp - 0x1c]
sar ecx, 1
sub ebx, ecx
push ebx
push eax
call fcn.00407fb8
push dword [ebp - 0x1c]
push 0x232a
call fcn.00408ab3
push dword [ebp - 0x1c]
call fcn.004082af
add esp, 0x30
xor ebx, ebx
jmp 0x405dbb
push dword [esi + 0xc]
push 0x232a
call fcn.00408ab3
pop ecx
pop ecx
mov esi, dword [esi + 4]
jmp 0x405d4b
mov ecx, dword [0x417030]
cmp dword [ecx + 0xc], ebx
jne 0x405dd5
push 0x1f43
call fcn.00408a41
mov eax, dword [0x41911c]
cmp eax, ebx
jne 0x405de7
mov dword [ebp - 0x1c], 0xa
jmp 0x405e09
movzx eax, word [eax]
sub eax, 0x43
je 0x405e06
sub eax, 0xc
je 0x405dfd
mov dword [ebp - 0x1c], 1
jmp 0x405e09
mov dword [ebp - 0x1c], 4
jmp 0x405e09
mov dword [ebp - 0x1c], ebx
mov esi, dword [ecx + 0xc]
push 4
pop edi
mov dword [ebp - 0x60], esi
cmp esi, ebx
je 0x405ee2
cmp dword [ebp - 0x1c], 0xa
je 0x405e34
cmp word [esi + 0x18], bx
jne 0x405e34
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x14], eax
mov word [esi + 0x18], 1
jmp 0x405e59
cmp dword [esi + 0x14], 0xa
jne 0x405e59
cmp dword [0x41917c], ebx
je 0x405e47
mov dword [esi + 0x14], ebx
jmp 0x405e59
mov dword [esi + 0x14], edi
push dword [esi + 4]
push 0x2340
call fcn.00408ab3
pop ecx
pop ecx
mov eax, dword [esi + 0x14]
imul eax, eax, 0xc
mov ecx, dword [eax + 0x4148a0]
mov dword [ebp - 0x64], ecx
mov eax, dword [ecx]
cmp eax, 0xa
je 0x405e7f
imul eax, eax, 0x24
test byte [eax + 0x41795c], 1
jne 0x405e8e
add ecx, edi
jmp 0x405e65
push dword [esi + 4]
push 0x2343
call fcn.00408ab3
pop ecx
pop ecx
cmp dword [0x4188ec], ebx
jne 0x405eb8
cmp dword [0x419124], ebx
je 0x405eb8
cmp dword [esi + 0x14], ebx
jne 0x405eb8
cmp dword [0x41917c], ebx
jne 0x405eb8
push dword [esi + 4]
push 0x1f6d
jmp 0x405d13
cmp dword [0x419e58], ebx
je 0x405edb
cmp dword [esi + 0x14], 1
jne 0x405edb
cmp dword [0x41917c], ebx
jne 0x405edb
push dword [esi + 4]
push 0x1f6e
jmp 0x405d13
mov esi, dword [esi]
jmp 0x405e0f
call fcn.0040406b
call fcn.00409293
push 0x414e94
push ebx
call dword [sym.imp.MSVCR80.dll_setlocale]
pop ecx
pop ecx
mov eax, dword [0x419134]
cmp eax, dword [0x419120]
jne 0x405fd7
call fcn.00409f9c
test eax, eax
je 0x405f1e
call fcn.0040b0c9
jmp 0x405fba
xor esi, esi
mov eax, dword [0x417030]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], esi
cmp ecx, ebx
je 0x405f37
inc esi
mov ecx, dword [ecx]
jmp 0x405f28
cmp dword [0x41aac0], ebx
je 0x405fac
cmp dword [0x41aad0], ebx
jne 0x405f4c
cmp esi, 2
jl 0x405fac
cmp dword [0x41aacc], ebx
je 0x405f73
or dword [0x417bdc], 0xffffffff
push 0x2346
call fcn.00408ab3
push dword [0x417030]
call fcn.00407d69
pop ecx
jmp 0x405fb9
mov eax, dword [0x41aac4]
cmp eax, ebx
jne 0x405f8e
lea eax, [ebp - 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x78]
jmp 0x405f96
push eax
call dword [sym.imp.MSVCR80.dll__wtoi]
pop ecx
mov dword [0x417bdc], eax
cmp eax, esi
jle 0x405fa5
mov dword [0x417bdc], esi
call fcn.0040b669
jmp 0x405fba
or dword [0x417bdc], 0xffffffff
push eax
call fcn.00407d69
pop ecx
mov eax, dword [0x417030]
mov dword [eax + 0x1c], ebx
cmp dword [0x419e38], ebx
jne 0x406011
push 0x233d
call fcn.00408ab3
pop ecx
jmp 0x406011
push ebx
jmp 0x405dd0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x419130]
neg eax
sbb eax, eax
and eax, 2
push eax
call fcn.004085a3
mov eax, dword [ebp - 0x38]
push dword [eax]
push 0x1f5e
call fcn.004089b4
pop ecx
push eax
push 2
call fcn.0040890a
push 0x41498c
push 2
call fcn.0040890a
add esp, 0x14
push 2
jmp 0x406025