Function at 0x436d60
Capabilities:
Get system information on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 0
je 0x436d87
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x18]
push edx
push 0
call fcn.00442400
add esp, 8
xor eax, eax
jne 0x436d6d
xor ecx, ecx
jne 0x436d6d
mov edx, dword [ebp + 0xc]
cmp dword [edx], 0
je 0x436da7
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push ecx
push 0
call fcn.00442400
add esp, 8
xor edx, edx
jne 0x436d8f
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x20]
and ecx, 1
je 0x436dbf
mov dword [ebp - 0x10], 1
jmp 0x436e1e
mov edx, dword [ebp + 0xc]
cmp dword [edx + 0x1c], 0
jne 0x436e1e
mov eax, dword [ebp + 0xc]
push eax
call fcn.0043a570
add esp, 4
test eax, eax
jge 0x436e1e
mov ecx, dword [ebp + 0xc]
cmp dword [ecx], 0
je 0x436df0
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
push 0
call fcn.00442430
add esp, 8
xor ecx, ecx
jne 0x436dd8
mov edx, dword [ebp + 8]
cmp dword [edx + 0x18], 0
je 0x436e0e
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
push ecx
push 0
call fcn.00442430
add esp, 8
xor edx, edx
jne 0x436df4
xor eax, eax
jne 0x436df4
or eax, 0xffffffff
jmp 0x4370ee
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
add edx, 1
mov eax, dword [ebp + 0xc]
mov dword [eax + 4], edx
mov ecx, dword [ebp + 0xc]
cmp dword [ecx], 0
je 0x436e45
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
push 0
call fcn.00442430
add esp, 8
xor ecx, ecx
jne 0x436e2d
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1c]
shr eax, 2
and eax, 1
je 0x436e5c
jmp 0x4370bd
cmp dword [ebp + 0x1c], 0
jg 0x436ea2
jl 0x436e6a
cmp dword [ebp + 0x18], 0
jae 0x436ea2
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0x14]
cmp eax, dword [edx + 0x34]
jl 0x436e8d
jg 0x436e88
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0x10]
cmp edx, dword [ecx + 0x30]
jbe 0x436e8d
jmp 0x4370bd
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x30]
sub ecx, dword [ebp + 0x10]
mov edx, dword [eax + 0x34]
sbb edx, dword [ebp + 0x14]
mov dword [ebp + 0x18], ecx
mov dword [ebp + 0x1c], edx
mov eax, dword [ebp + 0x10]
add eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
adc ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x38]
cmp ecx, dword [eax + 0x34]
jl 0x436ed7
jg 0x436ed2
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x3c]
cmp eax, dword [edx + 0x30]
jbe 0x436ed7
jmp 0x4370bd
push 8
call fcn.0043a7e0
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x436eef
jmp 0x4370bd
mov ecx, dword [ebp - 4]
add ecx, 0x1c
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
or eax, 9
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x436f54
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0xc]
and eax, 1
je 0x436f54
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
or edx, 2
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], edx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x20]
add edx, dword [ebp + 0x10]
mov eax, dword [ebp - 4]
mov dword [eax + 8], edx
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], ecx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
cdq
add eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
jmp 0x437064
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0xc]
shr eax, 1
and eax, 1
je 0x437043
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x28]
add edx, dword [ebp + 0x10]
mov eax, dword [ecx + 0x2c]
adc eax, dword [ebp + 0x14]
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], eax
xorps xmm0, xmm0
movlpd qword [ebp - 0x34], xmm0
xorps xmm0, xmm0
movlpd qword [ebp - 0x2c], xmm0
mov ecx, dword [ebp - 0x24]
or ecx, dword [ebp - 0x20]
je 0x436fd8
push 0x24
push 0
lea edx, [ebp - 0x60]
push edx
call fcn.0049d330
add esp, 0xc
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x44]
xor edx, edx
push edx
push ecx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.0049bb70
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], edx
mov edx, dword [ebp - 0x24]
sub edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x20]
sbb eax, dword [ebp - 0x28]
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp + 0x18]
add ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x30]
mov cl, 0x20
call fcn.0049bbf0
push eax
push 4
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x43701a
mov edx, dword [ebp - 4]
push edx
call fcn.0042e530
add esp, 4
jmp 0x4370bd
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x18], ecx
mov edx, dword [ebp + 0x18]
add edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 4]
mov dword [edx + 8], ecx
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], eax
jmp 0x437064
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
add edx, dword [eax + 0x1c]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x18], edx
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp - 4]
mov dword [eax + 4], edx
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], ecx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
add eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], eax
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0043ac20
add esp, 8
mov ecx, dword [ebp + 8]
push ecx
call fcn.00439c50
add esp, 4
mov edx, dword [ebp + 8]
cmp dword [edx + 0x18], 0
je 0x4370b1
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
push ecx
push 0
call fcn.00442430
add esp, 8
xor edx, edx
jne 0x437097
xor eax, eax
jne 0x437097
xor eax, eax
jmp 0x4370ee
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x18], 0
je 0x4370d7
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18]
push eax
push 0
call fcn.00442430
add esp, 8
xor ecx, ecx
jne 0x4370bd
xor edx, edx
jne 0x4370bd
mov eax, dword [ebp + 0xc]
push eax
call fcn.00436b50
add esp, 4
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret