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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff98
mov eax, 0x4cb30c
push ebx
lea ebx, [ebp + 8]
push esi
call fcn.004ae0a4
mov word [ebp - 0x30], 8
mov edx, 0x4c9838
mov ecx, dword [ebx]
mov dword [ecx], edx
inc dword [ebp - 0x24]
mov eax, 0x4cb544
mov edx, dword [ebx]
mov dword [edx], eax
mov ecx, dword [ebx]
mov eax, dword [ebp + 0xc]
mov dword [ecx + 8], eax
lea edx, [ebp - 0x68]
push edx
call sub.kernel32.dll_GetSystemInfo
mov dl, 1
mov eax, dword [0x4941a0]
call fcn.004222f4
mov ecx, dword [ebx]
mov dword [ecx + 0x40], eax
mov dl, 1
mov eax, dword [0x4941a0]
call fcn.004222f4
mov ecx, dword [ebx]
mov dword [ecx + 0x44], eax
mov eax, dword [ebx]
add eax, 0x28
push eax
call sub.kernel32.dll_InitializeCriticalSection
xor edx, edx
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x44], edx
push ecx
mov eax, dword [ebx]
mov edx, dword [eax + 8]
push edx
call sub.kernel32.dll_GetFileSize
mov ecx, dword [ebx]
xor edx, edx
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], edx
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebx]
xor edx, edx
mov edx, eax
xor eax, eax
add dword [ecx + 0x10], eax
adc dword [ecx + 0x14], edx
xor edx, edx
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x4c]
mov dword [eax + 4], ecx
mov eax, ecx
mov ecx, dword [ebx]
cmp edx, dword [ecx + 0x14]
jne 0x42c8c7
cmp eax, dword [ecx + 0x10]
jbe 0x42c8d3
jmp 0x42c8c9
jle 0x42c8d3
mov eax, dword [ebx]
mov edx, dword [ebx]
mov eax, dword [eax + 0x10]
mov dword [edx + 4], eax
mov ecx, dword [ebx]
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
mov eax, dword [ebx]
xor edx, edx
mov dword [eax + 0x20], edx
mov ecx, dword [ebx]
mov dword [ecx + 0x48], 0xffffffff
mov eax, dword [ebx]
xor edx, edx
mov dword [eax + 0xc], edx
mov ecx, dword [ebx]
cmp dword [ecx + 0x14], 0
jne 0x42c916
cmp dword [ecx + 0x10], 0
jne 0x42c916
mov eax, dword [ebp - 0x40]
mov dword fs:[0], eax
jmp 0x42cb0c
push 0
push 0
push 0
push 8
push 0
mov edx, dword [ebx]
mov ecx, dword [edx + 8]
push ecx
call sub.kernel32.dll_CreateFileMappingA
mov esi, eax
mov eax, dword [ebx]
mov dword [eax + 0xc], esi
test esi, esi
jne 0x42c9a7
call sub.kernel32.dll_GetLastError
mov esi, eax
lea eax, [ebp - 0x40]
push eax
push 0
push 0
push 0
push 1
push fcn.0042a700
push 0
lea eax, [ebp - 8]
mov word [ebp - 0x30], 0x14
mov edx, esi
call fcn.004baef0
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.004bad00
inc dword [ebp - 0x24]
xor ecx, ecx
mov dword [ebp - 0xc], ecx
lea ecx, [ebp - 0xc]
inc dword [ebp - 0x24]
pop edx
call fcn.004bafd4
lea ecx, [ebp - 0xc]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x4a21c8]
call fcn.004a5d48
push eax
push 0x404274
call fcn.004b7b21
add esp, 0x24
mov eax, dword [ebx]
xor ecx, ecx
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], 0
mov edx, dword [ebx]
mov dword [edx + 0x20], ecx
xor edx, edx
mov eax, dword [ebx]
mov ecx, dword [ebx]
mov eax, dword [eax + 4]
add eax, dword [ecx + 0x18]
adc edx, dword [ecx + 0x1c]
mov ecx, dword [ebx]
cmp edx, dword [ecx + 0x14]
jne 0x42c9db
cmp eax, dword [ecx + 0x10]
jbe 0x42ca11
jmp 0x42c9dd
jle 0x42ca11
mov eax, dword [ebx]
mov edx, dword [ebx]
mov eax, dword [eax + 0x10]
mov ecx, eax
mov eax, dword [edx + 0x18]
mov esi, eax
sub ecx, esi
and esi, 0xffffffff
push ecx
push esi
mov eax, dword [ebx]
mov eax, dword [eax + 0x1c]
mov edx, eax
push eax
sar edx, 0x1f
push 1
mov edx, dword [ebx]
mov ecx, dword [edx + 0xc]
push ecx
call sub.kernel32.dll_MapViewOfFile
mov edx, dword [ebx]
mov dword [edx + 0x20], eax
jmp 0x42ca3d
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
push ecx
mov eax, dword [ebx]
mov eax, dword [eax + 0x18]
and eax, 0xffffffff
push eax
mov edx, dword [ebx]
mov eax, dword [edx + 0x1c]
mov edx, eax
push eax
sar edx, 0x1f
push 1
mov edx, dword [ebx]
mov ecx, dword [edx + 0xc]
push ecx
call sub.kernel32.dll_MapViewOfFile
mov edx, dword [ebx]
mov dword [edx + 0x20], eax
mov eax, dword [ebx]
cmp dword [eax + 0x20], 0
jne 0x42cb0c
call sub.kernel32.dll_GetLastError
mov esi, eax
mov word [ebp - 0x30], 8
mov eax, esi
sub eax, 8
jne 0x42caa2
lea edx, [ebp - 0x40]
lea eax, [ebp - 0x10]
push edx
push 0
push 0
push 0
push 1
push fcn.0042a700
push 0
mov edx, 0x4cb10c
mov word [ebp - 0x30], 0x20
call fcn.004bad00
inc dword [ebp - 0x24]
mov ecx, dword [eax]
mov dl, 1
mov eax, dword [0x4a21c8]
call fcn.004a5d48
push eax
push 0x404274
call fcn.004b7b21
add esp, 0x24
lea ecx, [ebp - 0x40]
lea eax, [ebp - 0x18]
push ecx
push 0
push 0
push 0
push 1
push fcn.0042a700
push 0
mov edx, esi
mov word [ebp - 0x30], 0x2c
call fcn.004baef0
inc dword [ebp - 0x24]
lea ecx, [ebp - 0x18]
push ecx
mov edx, 0x4cb145
lea eax, [ebp - 0x14]
call fcn.004bad00
inc dword [ebp - 0x24]
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x1c]
inc dword [ebp - 0x24]
pop edx
call fcn.004bafd4
lea ecx, [ebp - 0x1c]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x4a21c8]
call fcn.004a5d48
push eax
push 0x404274
call fcn.004b7b21
add esp, 0x24
mov eax, dword [ebp - 0x40]
mov dword fs:[0], eax
mov eax, dword [ebx]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret