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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov esi, ecx
sub esp, 0x7c
mov eax, dword [ebp + 0xc]
mov edi, dword [ecx + 0xc]
mov ecx, dword [ecx + 0x20]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x10]
test ecx, ecx
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x14]
je 0x55d957
mov edi, dword [ebp - 0x50]
or eax, dword [ebp - 0x4c]
or edi, ebx
or eax, edi
je 0x55d97f
test byte [ebp + 0x18], 1
mov edi, 1
jne 0x55d5a7
test cl, 2
mov edi, 2
je 0x55d720
mov eax, dword [esi + 0x68]
test eax, eax
je 0x55d733
lea eax, [ebp - 0x3c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x20]
sub esp, 4
mov edx, ebx
mov dword [esp + 4], edi
lea ecx, [eax - 1]
neg eax
and eax, ebx
and ecx, ebx
mov ebx, dword [ebp - 0x50]
cmovne edx, eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x50], ecx
mov dword [esp + 0xc], edx
add ebx, ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 8], eax
mov eax, dword [esi + 0x68]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
sub esp, 0x14
test eax, eax
je 0x55d7b3
mov ecx, dword [ebp - 0x50]
lea edi, [eax + ecx]
mov ecx, dword [esi + 0x6c]
lea eax, [esi + 0x6c]
mov dword [ebp - 0x54], eax
mov eax, dword [ecx + 8]
mov ebx, ecx
cmp eax, 1
jbe 0x55d669
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0x5937c0
mov dword [esp], 0x5937d0
call fcn.005d6c90
mov ecx, dword [esi + 0x6c]
mov ebx, eax
sub esp, 0x10
mov eax, dword [ecx + 8]
lea edx, [ecx + 8]
test eax, eax
je 0x55d871
cmp eax, 0xffffffff
je 0x55d666
lock sub dword [edx], 1
je 0x55d86e
mov dword [esi + 0x6c], ebx
mov ecx, dword [ebx + 0x18]
mov eax, dword [ebx + 0x1c]
xor eax, edi
test ecx, ecx
mov dword [ebp - 0x4c], eax
je 0x55d6c0
xor edx, edx
div ecx
mov eax, dword [ebx + 4]
lea edx, [eax + edx*4]
mov eax, dword [edx]
cmp eax, ebx
je 0x55d6c3
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x5c], esi
jmp 0x55d69c
mov edx, eax
mov eax, dword [eax]
cmp eax, ebx
je 0x55d822
mov ecx, dword [ebp - 0x4c]
cmp ecx, dword [eax + 4]
jne 0x55d690
cmp edi, dword [eax + 8]
jne 0x55d690
cmp eax, ebx
mov ecx, dword [ebp - 0x58]
mov esi, dword [ebp - 0x5c]
je 0x55d6c5
add eax, 0xc
jmp 0x55d705
lea edx, [esi + 0x6c]
mov eax, ebx
cmp dword [eax + 0xc], ecx
jge 0x55d885
mov ecx, ebx
mov dword [esp], 4
mov dword [ebp - 0x54], edx
call fcn.005d6bc0
mov edx, dword [ebp - 0x54]
mov ebx, dword [ebp - 0x4c]
sub esp, 4
mov ecx, dword [edx]
mov dword [eax + 4], ebx
mov dword [eax + 8], edi
mov dword [eax + 0xc], 0
mov dword [eax], ecx
mov dword [edx], eax
add eax, 0xc
mov edx, dword [esi + 0x6c]
add dword [edx + 0xc], 1
mov esi, dword [ebp - 0x50]
mov dword [eax], esi
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret 0x14
mov eax, dword [esi + 0x68]
mov edi, ecx
and edi, 1
shl edi, 2
test eax, eax
jne 0x55d5b2
mov eax, dword [esi + 0x64]
cmp eax, 0xffffffff
je 0x55d8f0
and ecx, 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
cmp ecx, 1
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0
sbb ecx, ecx
mov dword [esp], eax
and ecx, 0xfffffffe
add ecx, 4
mov dword [esp + 8], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
sub esp, 0x18
test eax, eax
mov dword [esi + 0x68], eax
jne 0x55d5b2
lea ebx, [ebp - 0x3c]
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call fcn.00720b94
mov ecx, dword [ebp - 0x54]
mov dword [esp + 4], ebx
mov dword [esp], 0xd
call fcn.00553fe0
jmp 0x55d946
lea ebx, [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
je 0x55d830
call fcn.00720b94
mov ecx, dword [ebp - 0x54]
mov dword [esp + 4], ebx
mov dword [esp], 8
call fcn.00553fe0
mov eax, dword [ebp - 0x40]
sub esp, 8
mov edx, dword [eax]
test edx, edx
je 0x55d854
cmp edx, 0xffffffff
je 0x55d7fe
lock sub dword [eax], 1
mov eax, dword [ebp - 0x40]
je 0x55d854
mov eax, dword [esi + 0x68]
xor edi, edi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x68], 0
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret 0x14
mov ecx, dword [ebp - 0x58]
mov esi, dword [ebp - 0x5c]
jmp 0x55d6c5
call fcn.00720b94
mov ecx, dword [ebp - 0x54]
mov dword [esp + 4], ebx
mov dword [esp], 0xd
call fcn.00553fe0
mov eax, dword [ebp - 0x40]
sub esp, 8
mov edx, dword [eax]
test edx, edx
jne 0x55d7f0
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call fcn.004a4c50
jmp 0x55d7fe
mov ecx, dword [esi + 0x6c]
mov dword [esp], 0x5937c0
call fcn.005d6b30
sub esp, 4
jmp 0x55d666
movsx edx, word [eax + 0x16]
mov ecx, eax
add edx, 1
mov dword [esp], edx
call fcn.005d6f10
mov ebx, dword [esi + 0x6c]
sub esp, 4
mov edx, dword [ebp - 0x54]
mov ecx, dword [ebx + 0x18]
test ecx, ecx
je 0x55d6ce
mov eax, dword [ebp - 0x4c]
xor edx, edx
div ecx
mov eax, dword [ebx + 4]
lea edx, [eax + edx*4]
mov eax, dword [edx]
cmp eax, ebx
je 0x55d6ce
mov ecx, dword [ebp - 0x4c]
jmp 0x55d8d8
mov edx, eax
mov eax, dword [eax]
cmp ebx, eax
je 0x55d8e2
cmp dword [eax + 4], ecx
jne 0x55d8d0
cmp edi, dword [eax + 8]
jne 0x55d8d0
mov dword [ebp - 0x4c], ecx
jmp 0x55d6ce
mov eax, dword [esi + 0x60]
test eax, eax
je 0x55d920
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__fileno]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__get_osfhandle]
cmp eax, 0xffffffff
je 0x55d920
mov ecx, dword [esi + 0x20]
jmp 0x55d73f
lea ebx, [ebp - 0x3c]
mov dword [esp + 4], 5
mov dword [esp], ebx
call fcn.00720b94
mov ecx, dword [ebp - 0x54]
mov dword [esp + 4], ebx
mov dword [esp], 0xd
call fcn.00553fe0
sub esp, 8
mov ecx, ebx
xor edi, edi
call fcn.005b1050
jmp 0x55d816
lea ebx, [ebp - 0x3c]
mov dword [esp + 4], 5
mov dword [esp], ebx
call fcn.00720b94
mov ecx, dword [ebp - 0x54]
mov dword [esp + 4], ebx
mov dword [esp], 0xd
call fcn.00553fe0
jmp 0x55d946
lea ebx, [ebp - 0x3c]
mov dword [esp + 4], 0x57
mov dword [esp], ebx
call fcn.00720b94
mov ecx, dword [ebp - 0x54]
mov dword [esp + 4], ebx
mov dword [esp], 8
call fcn.00553fe0
jmp 0x55d946