Function at 0x10003430
Capabilities:
Get system information on windows
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x1001f008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x30], edx
push edi
cmp edx, 0x40
jb 0x10003472
mov eax, 0x5a4d
cmp word [0x1001f850], ax
jne 0x10003944
mov ecx, dword [0x1001f88c]
mov dword [ebp - 0x40], ecx
lea eax, [ecx + 0xf8]
cmp edx, eax
jae 0x10003479
push 0xd
jmp 0x10003949
cmp dword [ecx + 0x1001f850], 0x4550
lea edi, [ecx + 0x1001f850]
mov dword [ebp - 0x3c], edi
jne 0x10003944
mov eax, 0x14c
cmp word [edi + 4], ax
jne 0x10003944
mov ecx, dword [edi + 0x38]
test cl, 1
jne 0x10003944
movzx edx, word [edi + 0x14]
movzx ebx, word [edi + 6]
add edx, 0x24
test ebx, ebx
je 0x100034dd
add edx, edi
nop
mov eax, dword [edx + 4]
lea edx, [edx + 0x28]
test eax, eax
cmovne ecx, eax
add ecx, dword [edx - 0x28]
cmp ecx, esi
cmovbe ecx, esi
mov esi, ecx
mov ecx, dword [edi + 0x38]
sub ebx, 1
jne 0x100034c0
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ecx, dword [ebp - 0x24]
lea edx, [ecx - 1]
lea ebx, [ecx - 1]
not edx
add ebx, dword [edi + 0x50]
lea eax, [ecx - 1]
add eax, esi
and ebx, edx
and eax, edx
cmp ebx, eax
jne 0x10003944
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x3000
push ebx
push dword [edi + 0x34]
call esi
mov dword [ebp - 0x34], eax
test eax, eax
jne 0x10003532
push 4
push 0x3000
push ebx
push eax
call esi
mov dword [ebp - 0x34], eax
test eax, eax
je 0x1000355c
push 0x34
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp - 0x34]
mov ebx, eax
mov dword [ebp - 0x44], ebx
test ebx, ebx
jne 0x10003563
push 0x8000
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0xe
jmp 0x10003949
mov dword [ebx + 4], ecx
movzx eax, word [edi + 0x16]
mov ecx, dword [ebp - 0x30]
shr eax, 0xd
and eax, 1
mov dword [ebx + 0x1c], 0x100033f0
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x20], 0x10003400
mov dword [ebx + 0x24], 0x10003420
mov dword [ebx + 0x28], 0
mov eax, dword [ebp - 0x24]
mov dword [ebx + 0x30], eax
mov edx, dword [edi + 0x54]
call fcn.100031a0
test eax, eax
je 0x100036c5
push 4
push 0x1000
push dword [edi + 0x54]
push dword [ebp - 0x34]
call esi
push dword [edi + 0x54]
mov esi, eax
push 0x1001f850
push esi
call fcn.10005be0
mov eax, dword [0x1001f88c]
add esp, 0xc
mov ecx, dword [ebp - 0x34]
add eax, esi
mov dword [ebx], eax
xor esi, esi
mov dword [ebp - 0x38], 0
mov dword [eax + 0x34], ecx
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
mov dword [ebp - 0x2c], edx
movzx eax, word [ecx + 0x14]
add eax, 0x24
cmp si, word [ecx + 6]
jae 0x1000369e
lea edi, [eax + ecx]
nop
mov ecx, dword [edi + 4]
test ecx, ecx
jne 0x10003642
mov eax, dword [ebp - 0x40]
mov esi, dword [eax + 0x1001f888]
test esi, esi
jle 0x10003683
mov eax, dword [edi]
push 4
push 0x1000
push esi
add eax, edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x100036c5
mov eax, dword [edi]
add eax, dword [ebp - 0x2c]
push esi
push 0
push eax
mov dword [edi - 4], eax
call fcn.10005a20
jmp 0x1000367d
mov eax, dword [edi + 8]
add eax, ecx
cmp dword [ebp - 0x30], eax
jb 0x100036bd
mov eax, dword [edi]
push 4
push 0x1000
push ecx
add eax, edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x100036c5
push dword [edi + 4]
mov eax, dword [edi + 8]
mov esi, dword [edi]
add eax, 0x1001f850
add esi, dword [ebp - 0x2c]
push eax
push esi
call fcn.10005be0
mov dword [edi - 4], esi
mov edx, dword [ebp - 0x2c]
add esp, 0xc
mov ecx, dword [ebx]
add edi, 0x28
mov esi, dword [ebp - 0x38]
inc esi
mov dword [ebp - 0x38], esi
movzx eax, word [ecx + 6]
cmp esi, eax
jl 0x10003600
mov edi, dword [ebp - 0x3c]
mov eax, dword [ecx + 0x34]
sub eax, dword [edi + 0x34]
mov dword [ebp - 0x3c], eax
je 0x1000374d
cmp dword [ecx + 0xa4], 0
jne 0x100036df
xor eax, eax
jmp 0x10003752
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, ebx
call fcn.10003970
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100039f1
mov esp, ebp
pop ebp
ret
mov edx, dword [ebx + 4]
mov edi, dword [ecx + 0xa0]
add edi, edx
mov dword [ebp - 0x30], edx
mov eax, dword [edi]
test eax, eax
je 0x1000374d
mov ecx, dword [edi + 4]
add eax, edx
mov dword [ebp - 0x40], eax
lea edx, [edi + 8]
xor esi, esi
lea eax, [ecx - 8]
test eax, 0xfffffffe
jbe 0x1000373e
mov ebx, dword [ebp - 0x40]
nop dword [eax]
movzx eax, word [edx]
mov ecx, eax
and ecx, 0xf000
cmp ecx, 0x3000
jne 0x1000372e
mov ecx, dword [ebp - 0x3c]
and eax, 0xfff
add dword [eax + ebx], ecx
mov ecx, dword [edi + 4]
inc esi
add edx, 2
lea eax, [ecx - 8]
shr eax, 1
cmp esi, eax
jb 0x10003710
mov eax, dword [edi + ecx]
add edi, ecx
mov edx, dword [ebp - 0x30]
test eax, eax
jne 0x100036f3
mov ebx, dword [ebp - 0x44]
mov eax, 1
mov ecx, ebx
mov dword [ebx + 0x18], eax
call fcn.10003280
test eax, eax
je 0x100036c5
mov edi, dword [ebx]
mov ecx, dword [ebx + 0x30]
neg ecx
movzx esi, word [edi + 0x14]
add esi, edi
mov eax, dword [esi + 0x20]
and ecx, eax
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x58], ecx
mov ecx, dword [esi + 0x28]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x5c], eax
test ecx, ecx
jne 0x1000379c
mov eax, dword [esi + 0x3c]
test al, 0x40
je 0x10003795
mov ecx, dword [edi + 0x20]
jmp 0x1000379c
test al, al
jns 0x1000379c
mov ecx, dword [edi + 0x24]
mov edx, dword [esi + 0x3c]
mov eax, 1
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x40], 1
cmp ax, word [edi + 6]
jae 0x10003885
lea eax, [esi + 0x64]
mov dword [ebp - 0x2c], eax
nop dword [eax + eax]
mov esi, dword [eax - 0x1c]
mov dword [ebp - 0x30], esi
mov esi, dword [ebx + 0x30]
mov ebx, dword [eax - 0x14]
neg esi
and esi, dword [ebp - 0x30]
test ebx, ebx
mov dword [ebp - 0x48], ebx
mov ebx, dword [ebp - 0x44]
jne 0x10003803
test byte [eax], 0x40
je 0x100037f5
mov ebx, dword [edi + 0x20]
jmp 0x100037fd
test byte [eax], 0x80
je 0x10003803
mov ebx, dword [edi + 0x24]
mov dword [ebp - 0x48], ebx
mov ebx, dword [ebp - 0x44]
cmp dword [ebp - 0x3c], esi
je 0x10003843
mov eax, dword [ebp - 0x38]
add eax, ecx
cmp eax, esi
ja 0x10003840
lea edx, [ebp - 0x5c]
mov ecx, ebx
call fcn.100031c0
test eax, eax
je 0x100036c5
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x48]
mov edi, dword [ebx]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x5c], eax
mov eax, esi
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax]
jmp 0x10003863
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
mov eax, ecx
and eax, edx
or edx, ecx
bt eax, 0x19
jb 0x10003857
and edx, 0xfdffffff
mov ecx, dword [ebp - 0x48]
sub ecx, dword [ebp - 0x38]
add ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x40]
add eax, 0x28
mov dword [ebp - 0x2c], eax
inc esi
movzx eax, word [edi + 6]
cmp esi, eax
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x40], esi
jl 0x100037d0
lea edx, [ebp - 0x5c]
mov dword [ebp - 0x4c], 1
mov ecx, ebx
call fcn.100031c0
test eax, eax
je 0x100036c5
mov edx, dword [ebx]
mov ecx, edx
mov esi, dword [edx + 0xc0]
test esi, esi
je 0x100038d3
mov edi, dword [ebx + 4]
mov esi, dword [esi + edi + 0xc]
test esi, esi
je 0x100038d3
mov eax, dword [esi]
test eax, eax
je 0x100038d3
nop dword [eax]
push 0
push 1
push edi
call eax
mov eax, dword [esi + 4]
lea esi, [esi + 4]
test eax, eax
jne 0x100038c0
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x28]
test eax, eax
je 0x1000392a
mov ecx, dword [ebp - 0x34]
add eax, ecx
cmp dword [ebx + 0x14], 0
je 0x10003914
push 0
push 1
push ecx
call eax
test eax, eax
jne 0x100038fa
push 0x45a
jmp 0x100036bf
pop edi
pop esi
mov dword [ebx + 0x10], 1
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100039f1
mov esp, ebp
pop ebp
ret
pop edi
mov dword [ebx + 0x2c], eax
mov eax, ebx
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100039f1
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov dword [ebx + 0x2c], 0
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100039f1
mov esp, ebp
pop ebp
ret
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100039f1
mov esp, ebp
pop ebp
ret