Function at 0x482cf4
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe50
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x18c], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404b6c
lea eax, [ebp - 0x5c]
mov edx, dword [0x47467c]
call fcn.004051b4
xor eax, eax
push ebp
push 0x482f3e
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x5c]
mov eax, ebx
call fcn.00476b7c
mov eax, dword [ebp - 0x3c]
call fcn.004059c4
mov esi, eax
test esi, esi
jl 0x482d85
inc esi
xor ebx, ebx
mov eax, ebx
shl eax, 3
sub eax, ebx
mov edx, dword [ebp - 0x3c]
cmp edi, dword [edx + eax*4 + 0xc]
jne 0x482d81
cmp byte [ebp + 8], 0
je 0x482d75
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + eax*4 + 0x14]
mov dword [ebp - 8], eax
jmp 0x482d85
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + eax*4 + 4]
mov dword [ebp - 8], eax
jmp 0x482d85
inc ebx
dec esi
jne 0x482d53
cmp dword [ebp - 8], 0
jne 0x482f0f
lea edx, [ebp - 0x18c]
mov eax, dword [ebp - 4]
call fcn.00473b4c
mov eax, dword [ebp - 0x18c]
call fcn.00404b7c
push eax
call sub.kernel32.dll_GetModuleHandleA_2
mov dword [ebp - 0xc], eax
push 0x104
lea eax, [ebp - 0x161]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
push 0
push 0
push 3
push 0
push 1
push 0x80000000
lea eax, [ebp - 0x161]
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x482f0f
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CreateFileMappingA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x482f06
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x482efd
mov eax, dword [ebp - 0xc]
call fcn.00473e54
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x3c]
call fcn.004059c4
mov esi, eax
test esi, esi
jl 0x482ef4
inc esi
xor ebx, ebx
mov eax, ebx
shl eax, 3
sub eax, ebx
mov edx, dword [ebp - 0x3c]
mov edx, dword [edx + eax*4 + 4]
sub edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
call fcn.00473f7c
add eax, dword [ebp - 0x18]
lea edx, [ebp - 0x188]
call fcn.00475b04
cmp edi, dword [ebp - 0x180]
je 0x482ec0
mov edx, edi
sub edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
call fcn.00473f7c
mov edx, dword [ebp - 0x180]
sub edx, dword [ebp - 0x18]
cmp eax, edx
je 0x482ec0
cmp byte [ebp - 0x188], 0
je 0x482eec
cmp byte [ebp - 0x183], 0
je 0x482eec
lea edx, [ebp - 0x1b0]
mov eax, dword [ebp - 0x180]
call fcn.00475b04
cmp edi, dword [ebp - 0x1a8]
jne 0x482eec
cmp byte [ebp + 8], 0
je 0x482ed9
mov eax, ebx
shl eax, 3
sub eax, ebx
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + eax*4 + 0x14]
mov dword [ebp - 8], eax
jmp 0x482ef4
mov eax, ebx
shl eax, 3
sub eax, ebx
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + eax*4 + 4]
mov dword [ebp - 8], eax
jmp 0x482ef4
inc ebx
dec esi
jne 0x482e4c
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x482f45
lea eax, [ebp - 0x18c]
call fcn.004046bc
lea eax, [ebp - 0x5c]
mov edx, dword [0x47467c]
call fcn.00405284
lea eax, [ebp - 4]
call fcn.004046bc
ret