Function at 0x41ff34
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x4924c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 8]
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov eax, dword [edi + 0xc]
add eax, 0x10
mov dword [ebp - 0x70], 3
cmp eax, ecx
jae 0x41fe95
cmp eax, 0x47c808
je 0x41fe91
cmp dword [eax + 8], 6
je 0x41fee7
cmp eax, ecx
jb 0x41fe9a
mov eax, 0x47c808
mov ecx, dword [eax + 8]
cmp ecx, 6
jne 0x41feb1
mov edx, dword [eax]
cmp byte [edx + 7], 0
je 0x41feb1
mov eax, 0x47e5a8
jmp 0x41fec4
cmp eax, 0x47c808
mov eax, str.no_value
je 0x41fec4
mov eax, dword [ecx*4 + 0x47c654]
push eax
mov eax, dword [0x47c66c]
push eax
push str._nexpected:_s_ngot:_s
push edi
call fcn.00419ea0
add esp, 0x10
mov ebx, eax
mov ecx, 2
mov edx, edi
call fcn.0041bfc0
mov eax, dword [edi + 0xc]
add eax, 0x20
cmp eax, dword [edi + 8]
jae 0x41ff61
cmp eax, 0x47c808
je 0x41ff61
cmp dword [eax + 8], 0
jle 0x41ff61
push 0
push 3
mov eax, edi
call fcn.0041cb60
mov dword [ebp - 0x68], eax
mov eax, dword [edi + 0xc]
add eax, 0x20
add esp, 8
mov esi, 0x47c808
cmp eax, dword [edi + 8]
jae 0x41ff22
mov esi, eax
mov eax, dword [esi + 8]
add eax, 0xfffffffd
cmp eax, 4
ja case.0x41ff2d.6
jmp dword [eax*4 + 0x4206c4]
mov ecx, dword [esi]
mov eax, dword [ecx + 0xc]
jmp 0x41ff5d
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
jmp 0x41ff5d
mov eax, dword [esi]
call fcn.00426dc0
jmp 0x41ff5d
call fcn.00428b00
test eax, eax
je case.0x41ff2d.6
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
jmp 0x41ff5d
xor eax, eax
inc eax
mov dword [ebp - 0x70], eax
push 0x20
call fcn.00454f8f
mov ecx, dword [ebp - 0x70]
mov ebx, eax
push ecx
mov dword [ebp - 0x7c], ebx
mov dword [ebx], 0
call fcn.00454f8f
mov edx, dword [ebp - 0x70]
mov esi, eax
push edx
mov dword [ebx + 0x18], esi
call fcn.00454f8f
mov dword [ebx + 0x14], eax
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x68]
mov dword [ebx + 4], edi
mov al, byte [eax]
add esp, 0xc
mov dword [ebp - 0x70], esi
cmp al, 0x66
je 0x41ffa6
cmp al, 0x64
jne 0x41ffb4
push str.Callback_must_return_an_integer_or_pointer_
push edi
call fcn.0041c200
add esp, 8
mov esi, dword [ebp - 0x68]
mov al, byte [esi]
test al, al
je 0x41ffd3
lea ecx, [ecx]
cmp al, 0x28
je 0x42016f
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x41ffc0
mov dword [ebp - 0x68], esi
cmp byte [esi], 0x28
je 0x420172
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x41ffec
push eax
call fcn.00454f55
add esp, 4
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x41fffc
push eax
call fcn.00454f55
add esp, 4
mov eax, dword [ebx + 8]
test eax, eax
je 0x4200c4
mov dword [ebp - 0x6c], eax
js 0x4200c4
mov eax, 0xffffd8f0
mov ecx, edi
call fcn.00419860
mov esi, dword [eax]
push 0
call fcn.00426a40
mov edx, dword [eax]
mov ecx, dword [edi + 8]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
mov ecx, dword [ebp - 0x6c]
mov esi, 0x10
add dword [edi + 8], esi
push ecx
mov eax, 0xffffd8f0
call fcn.0041a4d0
fild dword [ebp - 0x6c]
mov eax, dword [edi + 8]
mov dword [eax + 8], 3
fstp qword [eax]
add dword [edi + 8], esi
mov eax, 0xffffd8f0
mov ecx, edi
call fcn.00419860
mov esi, dword [edi + 8]
mov dword [ebp - 0x6c], eax
mov eax, dword [eax]
push 0
push edi
call fcn.00426c40
mov edx, dword [esi - 0x10]
mov dword [eax], edx
mov ecx, dword [esi - 0xc]
mov dword [eax + 4], ecx
mov edx, dword [esi - 8]
mov dword [eax + 8], edx
mov eax, dword [edi + 8]
add esp, 0x10
cmp dword [eax - 8], 4
jl 0x4200bd
mov eax, dword [eax - 0x10]
test byte [eax + 5], 3
je 0x4200bd
mov ecx, dword [ebp - 0x6c]
mov eax, dword [ecx]
test byte [eax + 5], 4
je 0x4200bd
mov ecx, dword [edi + 0x10]
and byte [eax + 5], 0xfb
mov edx, dword [ecx + 0x28]
mov dword [eax + 0x18], edx
mov dword [ecx + 0x28], eax
add dword [edi + 8], 0xfffffff0
mov esi, dword [ebp - 0x68]
mov eax, dword [edi + 0x10]
mov ecx, dword [ebx]
mov edx, dword [eax + 0x114]
mov dword [ecx], edx
mov eax, dword [edi + 0x10]
mov ecx, dword [ebx]
push ebx
mov dword [eax + 0x114], ecx
call fcn.00454f55
mov eax, dword [edi + 0x14]
mov ecx, dword [edi + 0x28]
add esp, 4
cmp eax, ecx
jbe 0x42014b
sub eax, ecx
mov ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 8], eax
push 0x47db04
lea eax, [ebp - 0x60]
call fcn.0042d350
mov eax, dword [ebp - 0x5c]
add esp, 4
test eax, eax
jne 0x420126
mov eax, 0x47d978
mov dword [ebp - 0x5c], eax
push esi
push 2
push eax
push str._ncalling:_s_nbad_argument:__d_n_s
push edi
call fcn.0041c200
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00454563
mov esp, ebp
pop ebp
ret
push esi
push 2
push str._nbad_argument:__d__s
push edi
call fcn.0041c200
add esp, 0x10
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00454563
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x68], esi
mov cl, byte [esi]
test cl, cl
je 0x4202ae
jmp 0x420182
mov cl, al
cmp cl, 0x29
je 0x4202ae
movzx eax, cl
sub eax, 0x26
je 0x420292
sub eax, 2
je 0x4201a5
sub eax, 4
jne 0x420299
inc dword [ebp - 0x68]
lea ecx, [ebp - 0x75]
push ecx
lea edx, [ebp - 0x68]
push edx
call fcn.0041e8e0
add esp, 8
mov byte [ebp - 0x61], al
test al, al
je 0x4202ae
cmp al, 0x29
je 0x42029d
mov ecx, dword [ebp - 0x74]
mov edx, dword [ebp - 0x70]
mov byte [ecx], al
mov byte [edx], al
movsx eax, al
add eax, 0xffffffbe
cmp eax, 0x37
ja case.0x4201e7.67
movzx eax, byte [eax + 0x4206f0]
jmp dword [eax*4 + 0x4206d8]
mov esi, 1
jmp 0x420276
mov esi, 2
jmp 0x420276
mov esi, 4
jmp 0x420276
mov esi, 8
jmp 0x420276
xor esi, esi
jmp 0x420214
or esi, 0xffffffff
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x420224
push eax
call fcn.00454f55
add esp, 4
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x420234
push eax
call fcn.00454f55
add esp, 4
mov eax, dword [ebx + 8]
test eax, eax
je 0x420246
push eax
mov eax, edi
call fcn.0041db80
add esp, 4
mov ecx, dword [edi + 0x10]
mov edx, dword [ebx]
mov eax, dword [ecx + 0x114]
mov dword [edx], eax
mov ecx, dword [edi + 0x10]
mov edx, dword [ebx]
push ebx
mov dword [ecx + 0x114], edx
call fcn.00454f55
mov eax, dword [ebp - 0x68]
push eax
push str.callback_:__struct_error_..._s
push edi
call fcn.0041c200
add esp, 0x10
mov cl, byte [ebp - 0x61]
add esi, 3
mov eax, 1
add dword [ebp - 0x70], eax
add dword [ebp - 0x74], eax
shr esi, 2
add dword [ebp - 0x6c], esi
sub dword [ebp - 0x68], eax
jmp 0x420299
mov edx, dword [ebp - 0x74]
mov byte [edx - 1], 0x26
test cl, cl
je 0x4202ae
mov eax, dword [ebp - 0x68]
inc eax
mov dword [ebp - 0x68], eax
mov al, byte [eax]
test al, al
jne 0x420180
mov ecx, dword [ebp - 0x74]
mov eax, dword [ebp - 0x70]
mov byte [ecx], 0
mov byte [eax], 0
mov eax, dword [ebx + 0x14]
sub ecx, eax
lea esi, [ecx + 1]
push esi
push eax
call fcn.0045607d
mov dword [ebx + 0x14], eax
mov dword [ebx + 4], edi
mov dword [ebx + 0x1c], esi
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 8]
add eax, 0x10
add esp, 8
cmp eax, ecx
jb 0x4202e7
mov eax, 0x47c808
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
add dword [edi + 8], 0x10
push 0xffffd8f0
mov eax, edi
call fcn.0041da90
mov dword [ebx + 8], eax
mov ecx, dword [edi + 0x10]
add esp, 4
cmp dword [ecx + 0x114], 0
jne 0x4203a1
lea edx, [ebp - 0xa0]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x9c]
push 0x40
push 0x1000
push eax
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, dword [edi + 0x10]
mov ecx, eax
mov eax, dword [edx + 0x110]
test eax, eax
jne 0x420359
mov dword [edx + 0x110], ecx
jmp 0x420369
cmp dword [eax], 0
je 0x420367
mov edi, edi
mov eax, dword [eax]
cmp dword [eax], 0
jne 0x420360
mov dword [eax], ecx
mov dword [ecx], 0
mov eax, dword [edi + 0x10]
add ecx, 4
mov dword [eax + 0x114], ecx
lea eax, [esi - 0x1b]
cmp eax, 0x17
jbe 0x42039b
lea edx, [eax - 0x18]
mov eax, 0xb21642c9
mul edx
shr edx, 4
inc edx
dec edx
lea eax, [ecx + 0x17]
mov dword [ecx], eax
mov ecx, eax
jne 0x420391
mov dword [ecx], 0
cmp dword [ebp + 8], 0
mov eax, dword [edi + 0x10]
mov ecx, dword [eax + 0x114]
mov dword [ebx], ecx
mov eax, dword [edi + 0x10]
mov edx, dword [eax + 0x114]
mov ecx, dword [edx]
mov dword [eax + 0x114], ecx
je 0x42045a
cmp dword [ebx], 0
jne 0x4203da
push str.tocdecl_failed_
push edi
call fcn.0041c200
add esp, 8
mov eax, dword [ebx]
mov byte [eax], 0xe8
movzx ecx, byte [eax]
cmp ecx, 0xe8
jl 0x420416
cmp ecx, 0xe9
jle 0x420409
cmp ecx, 0xeb
jne 0x420416
mov edx, 0x41fcd0
sub dl, al
sub dl, 2
mov byte [eax + 1], dl
jmp 0x420416
mov ecx, 0x41fcd0
sub ecx, eax
sub ecx, 5
mov dword [eax + 1], ecx
mov dword [eax + 5], 0x41fcb0
lea ecx, [ebx + 4]
mov dword [eax + 9], ecx
mov byte [eax + 0xd], 0xbc
mov dword [eax + 0xe], 0
mov byte [eax + 0x12], 0xe9
mov dword [eax + 0x13], 0
push ebx
mov eax, edi
call fcn.0041fcf0
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00454563
mov esp, ebp
pop ebp
ret
cmp dword [ebx], 0
jne 0x42046d
push str.tostdcall_failed_
push edi
call fcn.0041c200
add esp, 8
mov eax, dword [ebx]
mov word [eax], 0x6858
lea ecx, [ebx + 4]
mov dword [eax + 2], ecx
mov ecx, dword [ebp - 0x6c]
mov byte [eax + 6], 0x50
add eax, 7
mov byte [eax], 0xe9
cmp ecx, 0x14
ja case.default.0x420490
jmp dword [ecx*4 + 0x420728]
mov ecx, 0x41fa30
jmp 0x42052e
mov ecx, 0x41fa50
jmp 0x42052e
mov ecx, 0x41fa70
jmp 0x42052e
mov ecx, 0x41fa90
jmp 0x42052e
mov ecx, 0x41fab0
jmp 0x42052e
mov ecx, 0x41fad0
jmp 0x42052e
mov ecx, 0x41faf0
jmp 0x42052e
mov ecx, 0x41fb10
jmp 0x42052e
mov ecx, 0x41fb30
jmp 0x42052e
mov ecx, 0x41fb50
jmp 0x42052e
mov ecx, 0x41fb70
jmp 0x42052e
mov ecx, 0x41fb90
jmp 0x42052e
mov ecx, 0x41fbb0
jmp 0x42052e
mov ecx, 0x41fbd0
jmp 0x42052e
mov ecx, 0x41fbf0
jmp 0x42052e
mov ecx, 0x41fc10
jmp 0x42052e
mov ecx, 0x41fc30
jmp 0x42052e
mov ecx, 0x41fc50
jmp 0x42052e
mov ecx, 0x41fc70
jmp 0x42052e
mov ecx, 0x41fc90
jmp 0x42052e
mov ecx, 0x41fa10
movzx edx, byte [eax]
cmp edx, 0xe8
jl 0x420439
cmp edx, 0xe9
jle 0x42055e
cmp edx, 0xeb
jne 0x420439
sub cl, al
sub cl, 2
mov byte [eax + 1], cl
jmp 0x420439
sub ecx, eax
sub ecx, 5
mov dword [eax + 1], ecx
jmp 0x420439
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x42057b
push eax
call fcn.00454f55
add esp, 4
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x42058b
push eax
call fcn.00454f55
add esp, 4
mov eax, dword [ebx + 8]
test eax, eax
je 0x420683
mov dword [ebp - 0x6c], eax
js 0x420683
mov eax, dword [edi + 0x10]
mov esi, dword [eax + 0x60]
push 0
call fcn.00426a40
mov edx, dword [eax]
mov ecx, dword [edi + 8]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
mov ecx, dword [ebp - 0x6c]
add dword [edi + 8], 0x10
mov esi, dword [edi + 0x10]
mov eax, dword [esi + 0x60]
mov ebx, dword [edi + 8]
push ecx
push edi
call fcn.00426c40
mov edx, dword [ebx - 0x10]
mov dword [eax], edx
mov ecx, dword [ebx - 0xc]
mov dword [eax + 4], ecx
mov edx, dword [ebx - 8]
mov dword [eax + 8], edx
mov eax, dword [edi + 8]
add esp, 0xc
cmp dword [eax - 8], 4
jl 0x420615
mov eax, dword [eax - 0x10]
test byte [eax + 5], 3
je 0x420615
mov esi, dword [esi + 0x60]
test byte [esi + 5], 4
je 0x420615
mov eax, dword [edi + 0x10]
and byte [esi + 5], 0xfb
mov ecx, dword [eax + 0x28]
mov dword [esi + 0x18], ecx
mov dword [eax + 0x28], esi
add dword [edi + 8], 0xfffffff0
fild dword [ebp - 0x6c]
mov eax, dword [edi + 8]
mov dword [eax + 8], 3
fstp qword [eax]
add dword [edi + 8], 0x10
mov esi, dword [edi + 0x10]
mov eax, dword [esi + 0x60]
mov ebx, dword [edi + 8]
push 0
push edi
call fcn.00426c40
mov edx, dword [ebx - 0x10]
mov dword [eax], edx
mov ecx, dword [ebx - 0xc]
mov dword [eax + 4], ecx
mov edx, dword [ebx - 8]
mov dword [eax + 8], edx
mov eax, dword [edi + 8]
add esp, 8
cmp dword [eax - 8], 4
jl 0x42067c
mov eax, dword [eax - 0x10]
test byte [eax + 5], 3
je 0x42067c
mov esi, dword [esi + 0x60]
test byte [esi + 5], 4
je 0x42067c
mov eax, dword [edi + 0x10]
and byte [esi + 5], 0xfb
mov ecx, dword [eax + 0x28]
mov dword [esi + 0x18], ecx
mov dword [eax + 0x28], esi
add dword [edi + 8], 0xfffffff0
mov ebx, dword [ebp - 0x7c]
mov edx, dword [edi + 0x10]
mov eax, dword [ebx]
mov ecx, dword [edx + 0x114]
mov dword [eax], ecx
mov edx, dword [edi + 0x10]
mov eax, dword [ebx]
push ebx
mov dword [edx + 0x114], eax
call fcn.00454f55
push str.argument_list_too_long
push edi
call fcn.0041c200
mov ecx, dword [ebp - 4]
add esp, 0xc
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00454563
mov esp, ebp
pop ebp
ret