Function at 0x4842a0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c56d3
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x62f570]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0x94], ebx
mov esi, edx
mov dword [ebp - 0x98], 0
call fcn.005482f7
push 0
push 0x20
mov edi, 1
push esi
lea ecx, [ebp - 0xb8]
mov dword [ebp - 4], edi
call fcn.005488e5
test eax, eax
je 0x484531
call fcn.0053a8e1
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x48432a
push 0x80004005
call fcn.004015b0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x9c], eax
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 2
mov dword [ebp - 0x84], 0
call fcn.0053caac
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 4
call fcn.005481e2
mov ecx, dword [ebp - 0xb4]
push 0
push 0
push 0
push 0x8000002
push 0
mov edi, eax
push ecx
mov dword [ebp - 0x90], edi
mov dword [ebp - 0x8c], edx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x84], eax
test eax, eax
je 0x4844a2
call fcn.00484680
test eax, eax
je 0x48448b
lea edx, [ebp - 0x80]
push edx
call dword [0x64071c]
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0xa4], eax
mov esi, 0x10000
cmp eax, dword [ebp - 0x8c]
ja 0x484437
jb 0x4843ce
cmp ebx, edi
jae 0x484437
mov ecx, dword [ebp - 0x8c]
sub edi, ebx
sbb ecx, eax
mov eax, esi
cdq
cmp ecx, edx
ja 0x4843ed
jb 0x4843e5
cmp edi, eax
jae 0x4843ed
mov esi, dword [ebp - 0x90]
sub esi, ebx
mov eax, dword [ebp - 0xa4]
mov ecx, dword [ebp - 0x84]
push esi
push ebx
push eax
push 4
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x484437
push esi
push edi
lea edx, [ebp - 0x80]
push edx
call dword [0x640720]
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edi, dword [ebp - 0x90]
mov eax, esi
cdq
add ebx, eax
adc dword [ebp - 0xa4], edx
mov eax, dword [ebp - 0xa4]
jmp 0x4843c0
lea eax, [ebp - 0x80]
push eax
call dword [0x640724]
lea esi, [ebp - 0x28]
lea edi, [ebp - 0x8c]
call fcn.004845a0
push eax
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 5
call fcn.004741e0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x8c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x484485
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [ebp - 0x94]
mov ecx, dword [ebp - 0x84]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x84], 0
lea ecx, [ebp - 0xb8]
call fcn.00548291
mov dword [ebp - 4], 3
jmp 0x4844eb
mov byte [ebp - 4], 2
call fcn.0053cac4
mov esi, dword [ebp - 0x9c]
add esi, 0xfffffff0
push esi
call fcn.004747b0
add eax, 0x10
add esp, 4
mov dword [ebx], eax
or dword [ebp - 0x98], 1
mov byte [ebp - 4], 1
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x484566
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
jmp 0x484566
call fcn.0053a8e1
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x48454b
push 0x80004005
call fcn.004015b0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebx], eax
mov ecx, ebx
call fcn.00441420
mov dword [ebp - 0x98], edi
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 0
call fcn.005484ec
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0057ffd2
mov esp, ebp
pop ebp
ret