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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cd010
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x504c94]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
mov edi, 1
push edi
mov dword [ebp - 4], edi
mov eax, dword [ebp + 0xc]
push SysReAllocStringLen
push eax
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x20], esi
cmp esi, 0xffffffff
jne 0x47e840
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 0xc]
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push eax
push edx
push str.AddContainer:_CreateFile__s__failed__LE_d
push ecx
call fcn.00466a00
add esp, 0x10
call fcn.0047c750
jmp 0x47eb58
lea eax, [ebp - 0x1c]
push eax
push esi
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x47e896
or ebx, eax
or edi, eax
push 0
push ebx
push edi
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x47e8c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 0xc]
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push eax
push edx
push str.AddContainer:_CreateFileMapping__s__failed__LE_d
push ecx
call fcn.00466a00
add esp, 0x10
call fcn.0047c750
jmp 0x47eb2f
mov edi, dword [ebp - 0x1c]
mov ebx, eax
or eax, edi
jne 0x47e857
mov edx, dword [ebp + 0xc]
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push edx
push str.AddContainer:_empty_file:__s
push ecx
call fcn.00466a00
add esp, 0xc
call fcn.0047c750
jmp 0x47eb4e
cmp dword [ebp + 0x10], 3
jne 0x47e942
push 0
mov esi, ebx
lea eax, [ebx + 4]
push eax
add esi, 4
adc edi, 0
push edi
push 4
push 0
push 0xffffffffffffffff
mov dword [ebp - 0x34], edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x47e9cd
lea ecx, [ebx + 4]
push ecx
push 0
push 0
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
mov dword [ebp - 0x2c], edi
test edi, edi
je 0x47e9a8
mov eax, dword [ebp - 0x14]
push ebx
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push ebx
push edi
mov edi, eax
mov dword [ebp - 0x24], eax
call fcn.0047d130
mov ecx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x34]
mov ebx, esi
mov esi, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ecx
call esi
mov edx, dword [ebp - 0x2c]
push edx
call esi
mov eax, dword [ebp + 0x18]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x2c], esp
mov esi, esp
push eax
call fcn.00423f84
mov ecx, dword [ebp + 0x10]
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
push eax
push edi
push ebx
push ecx
mov ecx, esi
call fcn.0047df20
mov ecx, eax
and ecx, edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
cmp ecx, 0xffffffff
jne 0x47e9f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
mov edx, esp
mov dword [ebp + 8], esp
push eax
mov eax, dword [ebp + 0xc]
push eax
push str.AddContainer:_PrepareToAddContainer__s__failed__LE_d
push edx
call fcn.00466a00
add esp, 0x10
call fcn.0047c750
jmp 0x47eb2f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push eax
push str.AddContainer:_MapViewOfFile_hObfuscationMap__failed__LE_d
push ecx
call fcn.00466a00
add esp, 0xc
call fcn.0047c750
jmp 0x47eb2f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
mov edx, esp
mov dword [ebp + 8], esp
push eax
push str.AddContainer:_CreateFileMapping_hObfuscationMap__failed__LE_d
push edx
call fcn.00466a00
add esp, 0xc
call fcn.0047c750
jmp 0x47eb2f
mov ecx, eax
add ecx, ebx
mov dword [ebp - 0x30], ecx
mov ecx, edx
adc ecx, edi
mov dword [ebp - 0x2c], ecx
cmp ecx, dword [esi + 0xc]
jb 0x47ea22
ja 0x47ea12
mov ecx, dword [ebp - 0x30]
cmp ecx, dword [esi + 8]
jbe 0x47ea22
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x30]
push ecx
push edx
call fcn.0047d080
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
xor ecx, ecx
mov dword [esi + 0x24], edx
xor edx, edx
mov dword [ebp - 0x10], ecx
mov dword [esi + 0x20], eax
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], ecx
cmp edi, ecx
jb 0x47eb2f
ja 0x47ea56
cmp ebx, ecx
jbe 0x47eb2f
jmp 0x47ea56
mov edx, dword [ebp - 0x30]
mov esi, dword [ebp + 8]
mov esi, dword [esi + 0x68]
xor eax, eax
mov ecx, esi
add ecx, edx
adc eax, dword [ebp - 0x2c]
cmp eax, edi
ja 0x47ea71
jb 0x47ea6c
cmp ecx, ebx
jae 0x47ea71
mov dword [ebp + 0x10], esi
jmp 0x47ea78
mov eax, ebx
sub eax, edx
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x47ea82
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x10]
push ecx
push edx
mov edx, dword [ebp - 0x2c]
push edx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x47ead7
mov eax, dword [ebp + 0x10]
cdq
push edx
push eax
mov eax, dword [ebp + 8]
push esi
call fcn.0047cfa0
test eax, eax
je 0x47eafd
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x68]
add dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x2c]
adc eax, 0
mov dword [ebp - 0x2c], eax
cmp eax, edi
jb 0x47ea50
ja 0x47eb2f
cmp dword [ebp - 0x30], ebx
jb 0x47ea50
jmp 0x47eb2f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
mov edx, esp
mov dword [ebp + 8], esp
push eax
mov eax, dword [ebp + 0xc]
push eax
push str.AddContainer:_MapViewOfFile__s__failed__LE_d
push edx
call fcn.00466a00
add esp, 0x10
call fcn.0047c750
jmp 0x47eb28
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 0xc]
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push eax
push edx
push str.AddContainer:_Write__s__into_PeContainer_failed__LE_d
push ecx
call fcn.00466a00
add esp, 0x10
call fcn.0047c750
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp - 0x10], 9
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x47eb3d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x47eb4b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x10]
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47eb7b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47eba1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14