Function at 0x42108c
Capabilities:
Get file size
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff9c
push ebx
push esi
push edi
lea ebx, [ebp + 8]
mov eax, 0x4ada6c
call fcn.00497028
mov word [ebp - 0x30], 8
mov edx, dword [ebx]
mov ecx, dword [ebp + 0xc]
mov dword [edx + 4], ecx
lea eax, [ebp - 0x64]
push eax
call sub.kernel32.dll_GetSystemInfo
mov dl, 1
mov eax, dword [0x47f764]
call fcn.004179f4
mov edx, dword [ebx]
mov dword [edx + 0x34], eax
mov dl, 1
mov eax, dword [0x47f764]
call fcn.004179f4
mov ecx, dword [ebx]
mov dword [ecx + 0x38], eax
mov eax, dword [ebx]
add eax, 0x1c
push eax
call sub.kernel32.dll_InitializeCriticalSection
push 0
mov edx, dword [ebx]
mov ecx, dword [edx + 4]
push ecx
call sub.kernel32.dll_GetFileSize
mov edx, dword [ebx]
mov dword [edx + 0xc], eax
mov ecx, dword [ebx]
mov eax, dword [ebp - 0x48]
mov dword [ecx], eax
mov edx, dword [ebx]
mov edx, dword [edx + 0xc]
cmp eax, edx
jbe 0x42110c
mov eax, dword [ebx]
mov dword [eax], edx
mov ecx, dword [ebx]
xor eax, eax
mov dword [ecx + 0x10], eax
mov edx, dword [ebx]
xor ecx, ecx
mov dword [edx + 0x14], ecx
mov eax, dword [ebx]
mov dword [eax + 0x3c], 0xffffffff
mov edx, dword [ebx]
xor ecx, ecx
mov dword [edx + 8], ecx
mov eax, dword [ebx]
cmp dword [eax + 0xc], 0
jne 0x421141
mov edx, dword [ebp - 0x40]
mov dword fs:[0], edx
jmp 0x4212fe
push 0
push 0
push 0
push 8
push 0
mov ecx, dword [ebx]
mov eax, dword [ecx + 4]
push eax
call sub.kernel32.dll_CreateFileMappingA
mov esi, eax
mov eax, dword [ebx]
mov dword [eax + 8], esi
test esi, esi
jne 0x4211d2
call sub.kernel32.dll_GetLastError
mov esi, eax
lea eax, [ebp - 0x40]
push eax
push 0
push 0
push 0
push 1
push fcn.00421310
push 0
lea eax, [ebp - 8]
mov word [ebp - 0x30], 0x14
mov edx, esi
call fcn.004a12c8
inc dword [ebp - 0x24]
lea ecx, [ebp - 8]
push ecx
mov edx, str.Error:_Cant_open_file._Error_code:
lea eax, [ebp - 4]
call fcn.004a1094
inc dword [ebp - 0x24]
xor ecx, ecx
mov dword [ebp - 0xc], ecx
lea ecx, [ebp - 0xc]
inc dword [ebp - 0x24]
pop edx
call fcn.004a1364
lea ecx, [ebp - 0xc]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x48d114]
call fcn.0048f2f4
push eax
push 0x40193c
call fcn.0049dea0
add esp, 0x24
mov eax, dword [ebx]
xor edx, edx
mov dword [eax + 0x10], edx
xor eax, eax
mov ecx, dword [ebx]
mov dword [ecx + 0x14], eax
mov edx, dword [ebx]
mov ecx, dword [ebx]
mov esi, dword [edx + 0x10]
mov edx, dword [ebx]
mov eax, esi
mov edi, dword [ecx + 0xc]
add eax, dword [edx]
cmp eax, edi
jbe 0x42120e
sub edi, esi
push edi
push esi
push 0
push 1
mov eax, dword [ebx]
mov edx, dword [eax + 8]
push edx
call sub.kernel32.dll_MapViewOfFile
mov ecx, dword [ebx]
mov dword [ecx + 0x14], eax
jmp 0x42122d
mov eax, dword [ebx]
mov edx, dword [eax]
push edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x10]
push eax
push 0
push 1
mov edx, dword [ebx]
mov ecx, dword [edx + 8]
push ecx
call sub.kernel32.dll_MapViewOfFile
mov edx, dword [ebx]
mov dword [edx + 0x14], eax
mov eax, dword [ebx]
cmp dword [eax + 0x14], 0
jne 0x4212fe
call sub.kernel32.dll_GetLastError
mov esi, eax
mov word [ebp - 0x30], 8
mov eax, esi
sub eax, 8
jne 0x421294
lea edx, [ebp - 0x40]
lea eax, [ebp - 0x10]
push edx
push 0
push 0
push 0
push 1
push fcn.00421310
push 0
mov edx, 0x4ad81c
mov word [ebp - 0x30], 0x20
call fcn.004a1094
inc dword [ebp - 0x24]
mov ecx, dword [eax]
mov dl, 1
mov eax, dword [0x48d114]
call fcn.0048f2f4
push eax
push 0x40193c
call fcn.0049dea0
add esp, 0x24
jmp 0x4212fe
lea ecx, [ebp - 0x40]
lea eax, [ebp - 0x18]
push ecx
push 0
push 0
push 0
push 1
push fcn.00421310
push 0
mov edx, esi
mov word [ebp - 0x30], 0x2c
call fcn.004a12c8
inc dword [ebp - 0x24]
lea ecx, [ebp - 0x18]
push ecx
mov edx, 0x4ad855
lea eax, [ebp - 0x14]
call fcn.004a1094
inc dword [ebp - 0x24]
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x1c]
inc dword [ebp - 0x24]
pop edx
call fcn.004a1364
lea ecx, [ebp - 0x1c]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x48d114]
call fcn.0048f2f4
push eax
push 0x40193c
call fcn.0049dea0
add esp, 0x24
mov eax, dword [ebp - 0x40]
mov dword fs:[0], eax
mov eax, dword [ebx]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret