Function at 0x404270
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0xf60
mov eax, dword [0x4606e0]
xor eax, esp
mov dword [esp + 0xf5c], eax
push ebp
mov ebp, dword [esp + 0xf6c]
push esi
push edi
push str.SetProcessAffinityMask
xor edi, edi
push str.KERNEL32.DLL
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], 0xc8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, edi
je 0x4042d2
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
xor esi, esi
cmp dword [esp + 0xc], edi
jle 0x4042fa
lea ebx, [ebx]
push 0x401
call fcn.004277d2
mov dword [esp + esi*4 + 0x40], eax
add esi, 1
add esp, 4
cmp esi, dword [esp + 0xc]
jl 0x4042e0
push 0x401
lea edx, [esp + 0x764]
push edi
push edx
call fcn.00425f70
add esp, 0xc
mov dword [0x47be38], edi
call fcn.0040b8f0
mov esi, eax
cmp esi, edi
jne 0x404354
push str.fatal_error_during_initialization_n
call fcn.00425de9
add eax, 0x40
push eax
call fcn.00425b9c
add esp, 8
pop edi
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0xf5c]
xor ecx, esp
call fcn.00426065
add esp, 0xf60
ret
mov edi, dword [esp + 0xf70]
cmp edi, 1
jg 0x404392
mov eax, dword [ebp]
push eax
call fcn.00425de9
add eax, 0x40
push eax
call fcn.004049c0
add esp, 8
pop edi
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0xf5c]
xor ecx, esp
call fcn.00426065
add esp, 0xf60
ret
push ebx
lea ecx, [esp + 0x360]
push ecx
lea edx, [esp + 0x768]
push edx
push 0x445d08
call fcn.00427c4a
add esp, 4
push eax
push esi
call fcn.004032a0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x378]
push edx
lea eax, [esp + 0x780]
push eax
push ebp
push edi
push esi
call fcn.004053b0
mov ebx, eax
add esp, 0x2c
test ebx, ebx
jge 0x4043ef
xor eax, eax
cmp ebx, 0xfffffffe
setne al
jmp 0x4046bf
fldz
fcomp dword [0x47be2c]
fnstsw ax
test ah, 0x41
jne 0x40440a
fld dword [0x445d04]
fstp dword [0x47be2c]
cmp byte [esp + 0x360], 0
je 0x404440
cmp dword [esp + 0x10], 0
jle 0x40447e
push 0x401
lea ecx, [esp + 0x364]
push ecx
lea edx, [esp + 0xb70]
push edx
call fcn.004279e0
add esp, 0xc
mov dword [esp + 0x14], 1
cmp dword [esp + 0x10], 0
jle 0x40447e
mov edx, dword [esp + 0x40]
lea eax, [esp + 0xb68]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x364]
push ecx
push edx
push eax
call fcn.00403f20
mov edx, dword [esp + 0x50]
lea ecx, [esp + 0x370]
push ecx
push edx
push esi
call fcn.00403380
add esp, 0x1c
jmp 0x404497
lea eax, [esp + 0x360]
push eax
lea ecx, [esp + 0x768]
push ecx
push esi
call fcn.00403380
add esp, 0xc
mov ebp, eax
test ebp, ebp
jne 0x4044a5
or eax, 0xffffffff
jmp 0x4046bf
push esi
call fcn.0040a7d0
mov edi, eax
add esp, 4
test edi, edi
jge 0x4044e7
cmp edi, 0xffffffff
jne 0x4044ca
call fcn.00425de9
add eax, 0x40
push eax
call fcn.00404ac0
add esp, 4
push str.fatal_error_during_initialization_n
call fcn.00425de9
add eax, 0x40
push eax
call fcn.00425b9c
add esp, 8
mov eax, edi
jmp 0x4046bf
cmp dword [0x47be78], 0
jle 0x4044fa
mov dword [0x47be30], 0
push esi
call fcn.0040ba60
add esp, 4
test eax, eax
je 0x404547
cmp dword [0x47be28], 0
lea edx, [esp + 0x360]
lea eax, [esp + 0x764]
push edx
push eax
je 0x404536
mov ecx, dword [0x47be34]
push ecx
push ebp
push esi
call fcn.00403440
add esp, 0x14
jmp 0x4046bd
push 0
push ebp
push esi
call fcn.00403440
add esp, 0x14
jmp 0x4046bd
mov eax, dword [esp + 0x10]
test eax, eax
jle 0x404651
xor edi, edi
test eax, eax
jle 0x404646
lea ecx, [ecx]
add eax, 0xffffffff
xor ebx, ebx
cmp edi, eax
setne bl
test edi, edi
jle 0x4045a5
mov eax, dword [esp + edi*4 + 0x40]
lea ecx, [esp + 0xb68]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x364]
push edx
push eax
push ecx
call fcn.00403f20
mov eax, dword [esp + edi*4 + 0x50]
lea edx, [esp + 0x370]
push edx
push eax
push esi
call fcn.00403380
add esp, 0x1c
mov ebp, eax
push esi
call fcn.00403ec0
mov ecx, dword [esp + 0x14]
push ecx
push esi
call fcn.0040bb80
push edi
push esi
call fcn.0040bba0
mov eax, dword [esp + edi*4 + 0x54]
lea edx, [esp + 0x374]
push edx
push eax
push ebx
push ebp
push esi
call fcn.004039d0
add esp, 0x28
cmp dword [0x47be78], 0
mov dword [esp + 0x18], eax
jg 0x4045fc
push esi
call fcn.0040ba30
add esp, 4
test eax, eax
je 0x4045fc
push str.Writing_LAME_Tag...
call fcn.00427b04
add esp, 4
push ebp
push esi
call fcn.0040a430
add esp, 8
cmp dword [0x47be78], 0
jg 0x404618
push esi
call fcn.004040f0
add esp, 4
push ebp
call fcn.00426ece
add esp, 4
call fcn.00402b70
test ebx, ebx
je 0x404633
push esi
call fcn.0040a1f0
add esp, 4
mov eax, dword [esp + 0x10]
add edi, 1
cmp edi, eax
jl 0x404560
mov ebx, dword [esp + 0x18]
push esi
call fcn.0040a3b0
add esp, 4
jmp 0x4046bd
push esi
call fcn.00403ec0
lea ecx, [esp + 0x364]
push ecx
lea edx, [esp + 0x76c]
push edx
push 0
push ebp
push esi
call fcn.004039d0
add esp, 0x18
cmp dword [0x47be78], 0
mov dword [esp + 0x18], eax
jg 0x404689
push esi
call fcn.004040d0
add esp, 4
push ebp
push esi
call fcn.0040a430
add esp, 8
cmp dword [0x47be78], 0
jg 0x4046a5
push esi
call fcn.004040f0
add esp, 4
push ebp
call fcn.00426ece
call fcn.00402b70
push esi
call fcn.0040a3b0
mov ebx, dword [esp + 0x20]
add esp, 8
mov eax, ebx
mov ecx, dword [esp + 0xf6c]
pop ebx
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00426065
add esp, 0xf60
ret