Function at 0x41bd70
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4aac88
push 0x4766f0
mov eax, dword fs:[0]
push eax
add esp, 0xffffff5c
mov eax, dword [0x4cf0c0]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x24], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0xb4], ecx
mov dword [ebp - 0xac], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
cmp dword [ebp + 0xc], 0xffffffff
jne 0x41bdd1
xor eax, eax
jmp 0x41c0b1
cmp dword [ebp + 8], 0
ja 0x41bdde
xor eax, eax
jmp 0x41c0b1
cmp dword [ebp + 0x10], 0xffffffff
jne 0x41bdeb
mov dword [ebp - 0x1c], 1
mov eax, dword [ebp - 0xb4]
add eax, 0x162c
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
push 0x24
call fcn.00474930
add esp, 4
mov dword [ebp - 0xb0], eax
mov ecx, dword [ebp - 0xb0]
mov dword [ebp - 0xac], ecx
cmp dword [ebp - 0x1c], 1
jne 0x41be34
mov edx, dword [ebp - 0xac]
mov dword [edx], 1
jmp 0x41be61
push 0
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x1400000
ja 0x41be55
mov ecx, dword [ebp - 0xac]
mov dword [ecx], 1
jmp 0x41be61
mov edx, dword [ebp - 0xac]
mov dword [edx], 0
mov eax, dword [ebp - 0xac]
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0xac]
mov eax, dword [ebp + 0xc]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0xac]
mov edx, dword [ebp + 0x10]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 0xac]
cmp dword [eax], 0
jne 0x41bf88
mov dword [ebp - 0x20], 0
jmp 0x41bea6
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x20], 2
jge 0x41bf45
push 0x201800
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xac]
mov dword [ecx + edx*4 + 0x14], eax
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0xac]
cmp dword [eax + edx*4 + 0x14], 0
jne 0x41bf2a
push 0x64
push 0
lea ecx, [ebp - 0xa8]
push ecx
call fcn.00474130
add esp, 0xc
push 0x49e000
push 0x49e014
call fcn.00474a90
add esp, 4
add eax, 2
push eax
lea edx, [ebp - 0xa8]
push edx
call fcn.00474a28
add esp, 0xc
cmp dword [ebp - 0x20], 0
jle 0x41bf28
mov eax, dword [ebp - 0xac]
mov ecx, dword [eax + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x41bf45
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0xac]
mov ecx, dword [esi + ecx*4 + 0x14]
mov dword [eax + edx*4], ecx
jmp 0x41be9d
push 0x800
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edx, dword [ebp - 0xac]
mov dword [edx + 0x1c], eax
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0xac]
mov edx, dword [ecx + 0x1c]
mov dword [eax], edx
mov eax, dword [ebp - 0xac]
mov dword [eax + 0x10], 0
mov ecx, dword [ebp - 0xac]
mov dword [ecx + 0x20], 0
jmp 0x41c06f
mov dword [ebp - 0x20], 0
jmp 0x41bf9a
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
cmp dword [ebp - 0x20], 2
jge 0x41bfc0
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xac]
mov dword [ecx + eax*4 + 0x14], 0
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp + 0x14]
mov dword [eax + edx*4], 0
jmp 0x41bf91
mov ecx, dword [ebp - 0xac]
mov dword [ecx + 0x1c], 0
mov edx, dword [ebp + 0x18]
mov dword [edx], 0
mov eax, dword [ebp - 0xac]
mov dword [eax + 0x10], 0
mov ecx, dword [ebp - 0xac]
mov dword [ecx + 0x20], 0
cmp dword [ebp + 0x10], 0xffffffff
je 0x41c06f
push 0
push 0
push 0
push 2
push 0
mov edx, dword [ebp - 0xac]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ecx, dword [ebp - 0xac]
mov dword [ecx + 0x10], eax
mov edx, dword [ebp - 0xac]
cmp dword [edx + 0x10], 0
je 0x41c06f
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 0xac]
mov ecx, dword [eax + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, dword [ebp - 0xac]
mov dword [edx + 0x20], eax
mov eax, dword [ebp - 0xac]
cmp dword [eax + 0x20], 0
jne 0x41c06f
mov ecx, dword [ebp - 0xac]
mov edx, dword [ecx + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xac]
mov dword [eax + 0x10], 0
lea ecx, [ebp - 0xac]
push ecx
mov ecx, dword [ebp - 0xb4]
add ecx, 0x1cb8
call fcn.0041ce40
mov dword [ebp - 4], 0xfffffffe
call fcn.0041c095
jmp 0x41c0a9
mov eax, dword [ebp - 0xac]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.00474590
mov esp, ebp
pop ebp
ret 0x14