Function at 0x402460
Capabilities:
Create thread
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x419004]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
lea eax, [esp + 8]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
lea eax, [esp + 0x10]
push esi
mov dword [esp + 0x18], eax
lea eax, [esp + 0x1c]
push edi
push eax
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov edi, dword [esp + 0x34]
mov dword [esp + 0xc], edi
lea ebx, [edi*4]
push ebx
call fcn.00408746
mov esi, eax
add esp, 4
test esi, esi
je 0x4024cc
push ebx
push 0
push esi
call fcn.00407860
add esp, 0xc
mov dword [0x41bb24], esi
test esi, esi
je 0x402752
push 0x41bb30
mov dword [0x41bb48], 0
mov dword [0x41bb4c], 0x41bb48
mov dword [0x41bb2c], 0
mov dword [0x41bb28], edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
xor esi, esi
cmp dword [0x41bb28], esi
jbe 0x402546
nop dword [eax]
push 0
push 0
push 0x41bb24
push 0x405000
push 0
push 0
call edi
mov ecx, dword [0x41bb24]
mov dword [ecx + esi*4], eax
inc esi
cmp esi, dword [0x41bb28]
jb 0x402520
push ebx
call fcn.00408746
mov esi, eax
add esp, 4
test esi, esi
je 0x402561
push ebx
push 0
push esi
call fcn.00407860
add esp, 0xc
mov dword [0x41bb50], esi
test esi, esi
je 0x402752
mov eax, dword [esp + 0xc]
push 0x41bb5c
mov dword [0x41bb74], 0
mov dword [0x41bb78], 0x41bb74
mov dword [0x41bb58], 0
mov dword [0x41bb54], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor esi, esi
cmp dword [0x41bb54], esi
jbe 0x4025d6
nop dword [eax + eax]
push 0
push 0
push 0x41bb50
push 0x405000
push 0
push 0
call edi
mov ecx, dword [0x41bb50]
mov dword [ecx + esi*4], eax
inc esi
cmp esi, dword [0x41bb54]
jb 0x4025b0
lea ecx, [esp + 0x10]
call fcn.00401530
test eax, eax
je 0x4025fb
push 0
push 0
lea eax, [esp + 0x18]
push eax
push 0x404510
push 0
push 0
call edi
mov ebx, eax
jmp 0x4025fd
xor ebx, ebx
mov esi, dword [0x41bae8]
test esi, esi
je 0x402625
nop word [eax + eax]
lea edx, [esp + 0x18]
mov ecx, esi
call fcn.00402b30
mov esi, dword [esi + 0x8000]
test esi, esi
jne 0x402610
mov esi, dword [esp + 0x18]
test esi, esi
je 0x402681
nop dword [eax]
sub esp, 0x18
xor eax, eax
mov edx, esp
mov dword [edx + 0x14], 7
mov dword [edx + 0x10], 0
mov word [edx], ax
cmp word [esi], ax
je 0x402661
mov eax, esi
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402652
sub eax, edi
sar eax, 1
push eax
push esi
mov ecx, edx
call fcn.00401680
mov ecx, 1
call fcn.00403ec0
mov esi, dword [esi + 0x7d00]
add esp, 0x18
test esi, esi
jne 0x402630
call fcn.004033e0
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x41bb28]
xor esi, esi
test eax, eax
je 0x4026d8
nop word [eax + eax]
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0xa
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push str.stopmarker
mov word [ecx], ax
call fcn.00401680
xor ecx, ecx
call fcn.00405270
mov eax, dword [0x41bb28]
inc esi
add esp, 0x18
cmp esi, eax
jb 0x4026a0
mov edi, dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push 0xffffffffffffffff
push 1
push dword [0x41bb24]
push eax
call edi
mov eax, dword [0x41bb54]
xor esi, esi
test eax, eax
je 0x402731
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0xa
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push str.stopmarker
mov word [ecx], ax
call fcn.00401680
mov ecx, 1
call fcn.00405270
mov eax, dword [0x41bb54]
inc esi
add esp, 0x18
cmp esi, eax
jb 0x4026f6
push 0xffffffffffffffff
push 1
push dword [0x41bb50]
push eax
call edi
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.004054b8
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x44]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004054b8
mov esp, ebp
pop ebp
ret