Function at 0x1003e520
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10087651
mov eax, dword fs:[0]
push eax
sub esp, 0x8c8
mov eax, dword [0x100a5c90]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x860], edx
mov edx, dword [ebp + 0x10]
lea esi, [ecx + 0x850]
mov dword [ebp - 0x83c], eax
mov dword [ebp - 0x848], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x840], edx
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x838], ecx
mov dword [ebp - 0x854], edx
test eax, eax
je 0x1003e5d4
lea eax, [esi + 0x14]
push eax
mov dword [ebp - 0x834], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [esi + 0x2c]
lea ebx, [ebp - 0x848]
lea eax, [ebp - 0x8b0]
mov ecx, esi
call fcn.1004d140
mov eax, dword [eax]
mov dword [ebp - 0x86c], eax
cmp eax, dword [esi + 4]
jne 0x1003e5fc
mov eax, dword [ebp - 0x834]
dec dword [esi + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [ebp - 0x854]
mov eax, dword [ebp - 0x840]
mov ecx, dword [ebp - 0x860]
push edi
push edx
mov edx, dword [ebp - 0x83c]
push eax
push ecx
push edx
call dword [0x100ac6d4]
jmp 0x1003e836
mov ecx, dword [ebp - 0x834]
dec dword [esi + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x86c]
mov ecx, dword [eax + 0x1248]
xor esi, esi
add eax, 0x1238
mov dword [ebp - 0x8a8], ecx
mov dword [ebp - 0x848], eax
mov dword [ebp - 0x87c], esi
mov dword [ebp - 0x878], esi
mov dword [ebp - 0x874], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x850], esi
mov dword [ebp - 0x84c], esi
mov dword [ebp - 0x85c], esi
mov dword [ebp - 0x858], esi
cmp edi, esi
je 0x1003ed46
mov eax, dword [edi + 4]
mov edx, dword [edi]
mov ecx, dword [edi + 8]
mov dword [ebp - 0x88c], eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x880], eax
xor eax, eax
cmp dword [edi + 0x10], esi
mov dword [ebp - 0x890], edx
mov edx, dword [edi + 0xc]
setne al
mov dword [ebp - 0x8a4], esi
mov dword [ebp - 0x850], esi
mov dword [ebp - 0x84c], esi
mov dword [ebp - 0x8a0], esi
mov dword [ebp - 0x888], ecx
mov dword [ebp - 0x884], edx
mov dword [ebp - 0x868], esi
mov dword [ebp - 0x844], eax
cmp eax, esi
je 0x1003e6d3
push esi
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x868], eax
mov dword [ebp - 0x880], eax
mov edx, dword [ebp - 0x83c]
lea ecx, [ebp - 0x850]
push ecx
push edx
call dword [0x100ac6fc]
mov ecx, dword [ebp - 0x86c]
mov ebx, dword [edi + 0xc]
mov eax, dword [edi + 8]
mov dword [ebp - 0x858], ebx
mov dword [ebp - 0x85c], eax
cmp dword [ecx + 0x124c], esi
je 0x1003e85c
lea edx, [ebp - 0x8d4]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x8b8]
mov ebx, dword [edi + 0xc]
mov esi, dword [edi + 8]
push 0
push eax
push ebx
push esi
call fcn.10081060
xor ecx, ecx
sub esi, eax
sbb ebx, ecx
mov ecx, dword [ebp - 0x838]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x840]
mov edx, dword [edx + 0x48]
add ecx, eax
push ecx
push esi
mov dword [ebp - 0x834], eax
mov eax, dword [ebp - 0x86c]
mov ecx, dword [eax + 0x1258]
push ebx
push 4
push ecx
mov ecx, dword [ebp - 0x838]
call edx
mov dword [ebp - 0x864], eax
test eax, eax
je 0x1003e854
mov ecx, dword [ebp - 0x840]
xor eax, eax
add ecx, dword [ebp - 0x834]
mov edx, eax
adc eax, edx
add ecx, esi
adc eax, ebx
add ecx, 0x200
adc eax, edx
cmp eax, dword [ebp - 0x84c]
jb 0x1003e7b6
mov eax, dword [ebp - 0x850]
ja 0x1003e7a7
cmp ecx, eax
jbe 0x1003e7b6
sub eax, dword [ebp - 0x834]
sub eax, esi
sub eax, 0x200
jmp 0x1003e7bc
mov eax, dword [ebp - 0x840]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x854]
test eax, eax
je 0x1003e7ce
mov ecx, dword [edi + 4]
mov dword [eax], ecx
mov edx, dword [edi + 4]
mov eax, dword [ebp - 0x834]
mov esi, dword [ebp - 0x864]
push edx
mov edx, dword [ebp - 0x860]
lea ecx, [esi + eax]
push ecx
push edx
call fcn.10073cd0
mov ecx, dword [ebp - 0x838]
mov eax, dword [ecx]
mov edx, dword [eax + 0x4c]
add esp, 0xc
push esi
call edx
mov eax, dword [ebp - 0x86c]
mov ecx, dword [eax + 0x1254]
mov edx, dword [edi + 4]
mov eax, dword [eax + 0x1250]
push edi
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
push 0x3e5
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea esi, [ebp - 0x87c]
call fcn.1005e8b0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10066b1b
mov esp, ebp
pop ebp
ret 0x14
mov ebx, dword [ebp - 0x858]
xor esi, esi
cmp ebx, esi
ja 0x1003e870
cmp dword [ebp - 0x85c], 0x80000000
jbe 0x1003e959
mov eax, dword [ebp - 0x85c]
mov edx, dword [ebp - 0x854]
add eax, 0x200
lea ecx, [ebp - 0x890]
push ecx
mov ecx, dword [ebp - 0x860]
push edx
mov edx, dword [ebp - 0x83c]
mov dword [ebp - 0x85c], eax
mov dword [ebp - 0x888], eax
mov eax, dword [ebp - 0x840]
push eax
push ecx
adc ebx, esi
push edx
mov dword [ebp - 0x884], ebx
call dword [0x100ac6d4]
mov dword [ebp - 0x834], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x838], eax
cmp dword [ebp - 0x834], esi
jne 0x1003e8fd
cmp eax, 0x3e5
jne 0x1003e829
push 0xffffffffffffffff
cmp dword [ebp - 0x844], esi
je 0x1003e8f0
mov eax, dword [ebp - 0x868]
push eax
jmp 0x1003e8f7
mov ecx, dword [ebp - 0x83c]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x85c]
mov edx, dword [ebp - 0x88c]
add eax, 0xfffffe00
adc ebx, 0xffffffff
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x890]
mov dword [edi + 0xc], ebx
mov dword [edi + 4], edx
mov dword [edi], eax
cmp dword [ebp - 0x844], esi
je 0x1003e941
mov ecx, dword [edi + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [ebp - 0x868]
push edx
call dword [0x100ac70c]
mov eax, dword [ebp - 0x838]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x834]
jmp 0x1003e836
mov ebx, dword [edi + 8]
mov eax, dword [ebp - 0x840]
mov edx, dword [ebp - 0x848]
add eax, ebx
push eax
push ebx
push edx
lea esi, [ebp - 0x87c]
mov dword [ebp - 0x864], eax
call fcn.10034f00
mov esi, dword [ebp - 0x878]
mov eax, esi
sub eax, dword [ebp - 0x87c]
add esp, 0xc
sar eax, 3
mov dword [ebp - 0x838], eax
test eax, eax
jne 0x1003ea93
mov esi, dword [ebp - 0x85c]
mov ebx, dword [ebp - 0x858]
mov ecx, dword [ebp - 0x854]
mov edx, dword [ebp - 0x840]
add esi, 0x200
adc ebx, eax
lea eax, [ebp - 0x890]
push eax
mov eax, dword [ebp - 0x860]
push ecx
mov ecx, dword [ebp - 0x83c]
push edx
push eax
push ecx
mov dword [ebp - 0x888], esi
mov dword [ebp - 0x884], ebx
call dword [0x100ac6d4]
mov dword [ebp - 0x834], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x834], 0
mov dword [ebp - 0x838], eax
jne 0x1003ea30
cmp eax, 0x3e5
jne 0x1003e829
cmp dword [ebp - 0x844], 0
push 0xffffffffffffffff
je 0x1003ea23
mov edx, dword [ebp - 0x868]
push edx
jmp 0x1003ea2a
mov eax, dword [ebp - 0x83c]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x88c]
mov edx, dword [ebp - 0x890]
add esi, 0xfffffe00
adc ebx, 0xffffffff
cmp dword [ebp - 0x844], 0
mov dword [edi + 8], esi
mov dword [edi + 0xc], ebx
mov dword [edi + 4], ecx
mov dword [edi], edx
je 0x1003ea70
mov eax, dword [edi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [ebp - 0x868]
push ecx
call dword [0x100ac70c]
mov edx, dword [ebp - 0x838]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea esi, [ebp - 0x87c]
call fcn.1005e8b0
mov eax, dword [ebp - 0x834]
jmp 0x1003e836
mov ecx, dword [ebp - 0x87c]
mov eax, dword [ecx]
cmp ebx, eax
ja 0x1003eaa7
mov dword [ebp - 0x834], ebx
jmp 0x1003eaba
mov edx, ebx
sub edx, eax
and edx, 0xf
mov eax, ebx
sub eax, edx
mov dword [ebp - 0x834], eax
mov dword [ecx], eax
mov edx, dword [ebp - 0x864]
cmp edx, dword [esi - 4]
jae 0x1003eae4
mov eax, edx
sub eax, dword [esi - 8]
mov ecx, 0x10
and eax, 0xf
sub ecx, eax
lea eax, [ecx - 0x10]
neg eax
sbb eax, eax
and ecx, eax
add ecx, edx
mov dword [esi - 4], ecx
jmp 0x1003eae6
mov ecx, edx
sub ebx, dword [ebp - 0x834]
xor eax, eax
mov esi, ecx
sub esi, dword [ebp - 0x834]
cmp edx, ecx
mov edx, dword [ebp - 0x850]
setne al
sub edx, 0x200
mov dword [ebp - 0x898], ebx
mov dword [ebp - 0x8ac], eax
mov eax, dword [ebp - 0x84c]
sbb eax, 0
xor ebx, ebx
cmp ebx, eax
jl 0x1003eb32
jg 0x1003eb28
cmp ecx, edx
jbe 0x1003eb32
mov dword [ebp - 0x8a0], 1
push esi
mov byte [ebp - 4], 1
call fcn.1005f071
add esp, 4
push esi
mov ebx, eax
push 0
push ebx
mov dword [ebp - 0x848], ebx
call fcn.1006b580
mov eax, dword [ebp - 0x834]
add esp, 0xc
xor ecx, ecx
mov dword [ebp - 4], ecx
add eax, 0x200
adc ecx, ecx
mov dword [ebp - 0x884], ecx
lea ecx, [ebp - 0x890]
push ecx
lea edx, [ebp - 0x8a4]
push edx
push esi
push ebx
mov ebx, dword [ebp - 0x83c]
push ebx
mov dword [ebp - 0x888], eax
call dword [0x100ac6d4]
mov esi, eax
mov dword [ebp - 0x89c], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x894], eax
test esi, esi
jne 0x1003ebcb
cmp eax, 0x3e5
jne 0x1003e829
push 0xffffffffffffffff
cmp dword [ebp - 0x844], esi
je 0x1003ebc4
mov eax, dword [ebp - 0x868]
push eax
jmp 0x1003ebc5
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea esi, [ebp - 0x830]
call fcn.1002fd90
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x86c]
mov ecx, dword [esi + 0x1054]
push ecx
lea ecx, [ebp - 0x830]
call fcn.10032bd0
movzx edx, word [esi + 0x115c]
mov ebx, dword [ebp - 0x87c]
xor esi, esi
mov dword [ebp - 0x24], edx
cmp dword [ebp - 0x838], esi
jbe 0x1003ec3e
lea esp, [esp]
mov eax, dword [ebx + esi*8]
sub eax, dword [ebp - 0x834]
mov ecx, dword [ebp - 0x848]
mov edx, dword [ebx + esi*8 + 4]
sub edx, dword [ebx + esi*8]
add ecx, eax
push ecx
lea eax, [ebp - 0x830]
push eax
call fcn.1002ffe0
inc esi
cmp esi, dword [ebp - 0x838]
jb 0x1003ec10
cmp dword [ebp - 0x844], 0
mov ecx, dword [ebp - 0x858]
mov edx, dword [ebp - 0x85c]
mov esi, dword [ebp - 0x840]
lea eax, [ebp - 0x890]
mov eax, dword [eax]
mov dword [edi + 0xc], ecx
mov dword [edi + 8], edx
mov dword [edi + 4], esi
mov dword [edi], eax
je 0x1003ec83
mov ecx, dword [edi + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [ebp - 0x868]
push edx
call dword [0x100ac70c]
mov edx, dword [ebp - 0x8a0]
mov eax, dword [ebp - 0x850]
test edx, edx
je 0x1003eca1
mov ecx, eax
sub ecx, dword [edi + 8]
sub ecx, 0x200
mov dword [edi + 4], ecx
mov ecx, dword [ebp - 0x854]
test ecx, ecx
je 0x1003ecbd
test edx, edx
je 0x1003ecbb
sub eax, dword [edi + 8]
sub eax, 0x200
mov dword [ecx], eax
jmp 0x1003ecbd
mov dword [ecx], esi
cmp dword [ebp - 0x8ac], 0
je 0x1003eced
cmp dword [ebp - 0x8a8], 0
jne 0x1003eced
mov edx, dword [ebp - 0x864]
mov eax, dword [ebp - 0x83c]
push 0
push 0
add edx, 0x200
push edx
push eax
call dword [0x100ac6e4]
mov ecx, dword [edi + 4]
mov edx, dword [ebp - 0x898]
mov esi, dword [ebp - 0x848]
push ecx
mov ecx, dword [ebp - 0x860]
lea eax, [esi + edx]
push eax
push ecx
call fcn.10073cd0
push esi
call fcn.10066b10
mov edx, dword [ebp - 0x894]
add esp, 0x10
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
je 0x1003ed30
push ebx
call fcn.10066b10
add esp, 4
mov eax, dword [ebp - 0x89c]
jmp 0x1003e836
mov ebx, dword [ebp - 0x83c]
lea eax, [ebp - 0x850]
push eax
push ebx
mov dword [ebp - 0x894], esi
xor edi, edi
call dword [0x100ac6fc]
add dword [ebp - 0x850], 0xfffffe00
push 1
lea ecx, [ebp - 0x85c]
adc dword [ebp - 0x84c], 0xffffffff
push ecx
push edi
push esi
push ebx
call dword [0x100ac6ec]
mov ecx, dword [ebp - 0x858]
cmp ecx, esi
jg 0x1003eda7
jl 0x1003e834
mov eax, dword [ebp - 0x85c]
cmp eax, 0x200
jae 0x1003edad
jmp 0x1003e834
mov eax, dword [ebp - 0x85c]
cmp ecx, esi
jl 0x1003edee
jg 0x1003edba
cmp eax, 0x80000000
jbe 0x1003edee
mov edx, dword [ebp - 0x854]
mov eax, dword [ebp - 0x840]
mov ecx, dword [ebp - 0x860]
push 0
push edx
push eax
push ecx
mov edx, ebx
push edx
call dword [0x100ac6d4]
lea esi, [ebp - 0x87c]
mov edi, eax
call fcn.1005e8b0
mov eax, edi
jmp 0x1003e836
mov ecx, dword [ebp - 0x840]
mov edx, dword [ebp - 0x848]
sub eax, 0x200
add ecx, eax
push ecx
push eax
mov edi, eax
push edx
lea esi, [ebp - 0x87c]
mov dword [ebp - 0x85c], eax
mov dword [ebp - 0x844], edi
mov dword [ebp - 0x864], ecx
call fcn.10034f00
mov esi, dword [ebp - 0x878]
mov eax, dword [ebp - 0x87c]
mov ebx, esi
sub ebx, eax
sar ebx, 3
add esp, 0xc
test ebx, ebx
jne 0x1003ee5f
mov eax, dword [ebp - 0x854]
mov ecx, dword [ebp - 0x840]
mov edx, dword [ebp - 0x860]
push ebx
push eax
mov eax, dword [ebp - 0x83c]
push ecx
push edx
push eax
jmp 0x1003edd4
mov eax, dword [eax]
cmp edi, eax
mov edi, dword [ebp - 0x844]
jbe 0x1003ee7c
mov edx, dword [ebp - 0x87c]
mov ecx, edi
sub ecx, eax
and ecx, 0xf
sub edi, ecx
mov dword [edx], edi
mov edx, dword [ebp - 0x864]
mov eax, edx
cmp edx, dword [esi - 4]
jae 0x1003eea4
sub eax, dword [esi - 8]
mov ecx, 0x10
and eax, 0xf
sub ecx, eax
lea eax, [ecx - 0x10]
neg eax
sbb eax, eax
and eax, ecx
add eax, edx
mov dword [esi - 4], eax
mov ecx, dword [ebp - 0x844]
sub ecx, edi
mov dword [ebp - 0x838], ecx
xor ecx, ecx
mov esi, eax
sub esi, edi
cmp dword [ebp - 0x838], ecx
setne cl
mov dword [ebp - 0x89c], ecx
xor ecx, ecx
cmp edx, eax
setne cl
mov dword [ebp - 0x898], ecx
xor ecx, ecx
cmp ecx, dword [ebp - 0x84c]
jl 0x1003eef4
jg 0x1003eee8
cmp eax, dword [ebp - 0x850]
jbe 0x1003eef4
mov dword [ebp - 0x848], 1
jmp 0x1003eefa
mov dword [ebp - 0x848], ecx
push esi
mov byte [ebp - 4], 4
call fcn.1005f071
add esp, 4
push esi
mov edx, eax
push 0
push edx
mov dword [ebp - 0x834], eax
call fcn.1006b580
add esp, 0xc
cmp dword [ebp - 0x89c], 0
mov dword [ebp - 4], 0
je 0x1003ef43
mov ecx, dword [ebp - 0x83c]
push 0
push 0
lea eax, [edi + 0x200]
push eax
push ecx
call dword [0x100ac6e4]
mov eax, dword [ebp - 0x834]
mov ecx, dword [ebp - 0x83c]
push 0
lea edx, [ebp - 0x894]
push edx
push esi
push eax
push ecx
call dword [0x100ac6d4]
test eax, eax
je 0x1003e829
lea esi, [ebp - 0x830]
call fcn.1002fd90
mov byte [ebp - 4], 6
mov esi, dword [ebp - 0x86c]
mov edx, dword [esi + 0x1054]
push edx
lea ecx, [ebp - 0x830]
call fcn.10032bd0
movzx eax, word [esi + 0x115c]
xor esi, esi
mov dword [ebp - 0x24], eax
test ebx, ebx
je 0x1003efca
mov eax, dword [ebp - 0x87c]
mov ecx, dword [eax + esi*8]
mov edx, dword [eax + esi*8 + 4]
sub edx, dword [eax + esi*8]
sub ecx, edi
add ecx, dword [ebp - 0x834]
lea eax, [ebp - 0x830]
push ecx
push eax
call fcn.1002ffe0
inc esi
cmp esi, ebx
jb 0x1003efa0
cmp dword [ebp - 0x848], 0
je 0x1003f005
mov eax, dword [ebp - 0x850]
mov ecx, dword [ebp - 0x854]
sub eax, dword [ebp - 0x844]
test ecx, ecx
je 0x1003efeb
mov dword [ecx], eax
mov esi, dword [ebp - 0x834]
mov ecx, dword [ebp - 0x838]
push eax
mov eax, dword [ebp - 0x860]
lea edx, [esi + ecx]
push edx
push eax
jmp 0x1003f035
mov eax, dword [ebp - 0x854]
test eax, eax
je 0x1003f017
mov ecx, dword [ebp - 0x840]
mov dword [eax], ecx
mov edx, dword [ebp - 0x840]
mov esi, dword [ebp - 0x834]
mov eax, dword [ebp - 0x838]
push edx
mov edx, dword [ebp - 0x860]
lea ecx, [esi + eax]
push ecx
push edx
call fcn.10073cd0
add esp, 0xc
cmp dword [ebp - 0x898], 0
je 0x1003f063
mov eax, dword [ebp - 0x864]
mov ecx, dword [ebp - 0x83c]
push 0
push 0
add eax, 0x200
push eax
push ecx
call dword [0x100ac6e4]
push esi
call fcn.10067956
mov eax, dword [ebp - 0x87c]
add esp, 4
test eax, eax
je 0x1003f07f
push eax
call fcn.10066b10
add esp, 4
mov eax, 1
jmp 0x1003e836