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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
mov esi, ecx
mov byte [ebp - 5], dl
xor eax, eax
push ebp
push 0x1324961e
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 6], 0
xor eax, eax
push ebp
push 0x132495b4
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x20]
mov edx, 0x13249630
call fcn.13144e30
mov eax, dword [ebp - 0x20]
call fcn.1314a074
test al, al
je 0x1324911d
lea eax, [ebp - 4]
mov edx, 0x13249644
call fcn.13144cc0
jmp 0x13249125
lea eax, [ebp - 4]
call fcn.131b42a0
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.131450c8
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x132495aa
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetFileSize
mov edi, eax
xor eax, eax
push ebp
push 0x132495a3
push dword fs:[eax]
mov dword fs:[eax], esp
cmp edi, 0x1c
jbe 0x1324958c
push 0
push edi
mov eax, dword [ebp - 0x18]
push eax
push 2
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CreateFileMappingA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x1324958c
push edi
push 0
push 0
push 4
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x13249585
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x14], 0
je 0x13249565
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, 0x1c
call fcn.13142f14
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x1324955e
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, edi
sub ebx, 0x1c
mov eax, dword [ebp - 0x14]
cdq
push edx
push eax
mov eax, ebx
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [ebp - 0x1c]
mov ecx, 0x1c
call fcn.13143104
mov eax, dword [ebp - 0x1c]
cmp dword [eax], 0x532231b
jne case.default.0x13249237
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 4], 0
jbe case.default.0x13249237
movzx eax, byte [ebp - 5]
cmp eax, 7
ja case.default.0x13249237
jmp dword [eax*4 + 0x1324923e]
mov ebx, edi
test ebx, ebx
jbe case.default.0x13249237
push ebx
mov eax, esi
mov ecx, 1
mov edx, dword [0x13148848]
call fcn.131462b8
add esp, 4
mov ebx, edi
mov edx, dword [esi]
mov eax, dword [ebp - 0x14]
mov ecx, ebx
call fcn.13143104
mov byte [ebp - 6], 1
jmp case.default.0x13249237
mov eax, dword [ebp - 0x1c]
mov ebx, edi
sub ebx, dword [eax + 4]
mov eax, dword [ebp - 0x1c]
sub ebx, dword [eax + 8]
mov eax, dword [ebp - 0x1c]
sub ebx, dword [eax + 0xc]
mov eax, dword [ebp - 0x1c]
sub ebx, dword [eax + 0x10]
mov eax, dword [ebp - 0x1c]
sub ebx, dword [eax + 0x14]
mov eax, dword [ebp - 0x1c]
sub ebx, dword [eax + 0x18]
sub ebx, 0x1c
test ebx, ebx
jbe case.default.0x13249237
push ebx
mov eax, esi
mov ecx, 1
mov edx, dword [0x13148848]
call fcn.131462b8
add esp, 4
mov edx, dword [esi]
mov eax, dword [ebp - 0x14]
mov ecx, ebx
call fcn.13143104
mov byte [ebp - 6], 1
jmp case.default.0x13249237
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax + 4]
test ebx, ebx
jbe case.default.0x13249237
push ebx
mov eax, esi
mov ecx, 1
mov edx, dword [0x13148848]
call fcn.131462b8
add esp, 4
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 4]
mov ebx, edi
sub ebx, ecx
mov eax, dword [ebp - 0x1c]
sub ebx, dword [eax + 8]
mov eax, dword [ebp - 0x1c]
sub ebx, dword [eax + 0xc]
mov eax, dword [ebp - 0x1c]
sub ebx, dword [eax + 0x10]
mov eax, dword [ebp - 0x1c]
sub ebx, dword [eax + 0x14]
mov eax, dword [ebp - 0x1c]
sub ebx, dword [eax + 0x18]
sub ebx, 0x1c
mov eax, dword [ebp - 0x14]
cdq
push edx
push eax
mov eax, ebx
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [esi]
call fcn.13143104
mov byte [ebp - 6], 1
jmp case.default.0x13249237
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax + 8]
test ebx, ebx
jbe case.default.0x13249237
push ebx
mov eax, esi
mov ecx, 1
mov edx, dword [0x13148848]
call fcn.131462b8
add esp, 4
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 8]
mov ebx, edi
sub ebx, ecx
mov eax, dword [ebp - 0x1c]
sub ebx, dword [eax + 0xc]
mov eax, dword [ebp - 0x1c]
sub ebx, dword [eax + 0x10]
mov eax, dword [ebp - 0x1c]
sub ebx, dword [eax + 0x14]
mov eax, dword [ebp - 0x1c]
sub ebx, dword [eax + 0x18]
sub ebx, 0x1c
mov eax, dword [ebp - 0x14]
cdq
push edx
push eax
mov eax, ebx
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [esi]
call fcn.13143104
mov byte [ebp - 6], 1
jmp case.default.0x13249237
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax + 0xc]
test ebx, ebx
jbe case.default.0x13249237
push ebx
mov eax, esi
mov ecx, 1
mov edx, dword [0x13148848]
call fcn.131462b8
add esp, 4
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0xc]
mov ebx, edi
sub ebx, ecx
mov eax, dword [ebp - 0x1c]
sub ebx, dword [eax + 0x10]
mov eax, dword [ebp - 0x1c]
sub ebx, dword [eax + 0x14]
mov eax, dword [ebp - 0x1c]
sub ebx, dword [eax + 0x18]
sub ebx, 0x1c
mov eax, dword [ebp - 0x14]
cdq
push edx
push eax
mov eax, ebx
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [esi]
call fcn.13143104
mov byte [ebp - 6], 1
jmp case.default.0x13249237
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax + 0x10]
test ebx, ebx
jbe case.default.0x13249237
push ebx
mov eax, esi
mov ecx, 1
mov edx, dword [0x13148848]
call fcn.131462b8
add esp, 4
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x10]
mov ebx, edi
sub ebx, ecx
mov eax, dword [ebp - 0x1c]
sub ebx, dword [eax + 0x14]
mov eax, dword [ebp - 0x1c]
sub ebx, dword [eax + 0x18]
sub ebx, 0x1c
mov eax, dword [ebp - 0x14]
cdq
push edx
push eax
mov eax, ebx
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [esi]
call fcn.13143104
mov byte [ebp - 6], 1
jmp case.default.0x13249237
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax + 0x14]
test ebx, ebx
jbe case.default.0x13249237
push ebx
mov eax, esi
mov ecx, 1
mov edx, dword [0x13148848]
call fcn.131462b8
add esp, 4
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x14]
mov ebx, edi
sub ebx, ecx
mov eax, dword [ebp - 0x1c]
sub ebx, dword [eax + 0x18]
sub ebx, 0x1c
mov eax, dword [ebp - 0x14]
cdq
push edx
push eax
mov eax, ebx
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [esi]
call fcn.13143104
mov byte [ebp - 6], 1
jmp case.default.0x13249237
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax + 0x18]
test ebx, ebx
jbe case.default.0x13249237
push ebx
mov eax, esi
mov ecx, 1
mov edx, dword [0x13148848]
call fcn.131462b8
add esp, 4
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x18]
mov ebx, edi
sub ebx, ecx
sub ebx, 0x1c
mov eax, dword [ebp - 0x14]
cdq
push edx
push eax
mov eax, ebx
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [esi]
call fcn.13143104
mov byte [ebp - 6], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x13249565
cmp dword [ebp - 0x1c], 0
je 0x1324955d
mov edx, 0x1c
mov eax, dword [ebp - 0x1c]
call fcn.13142f30
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1324958c
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x132495aa
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x132495fb
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x13249625
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.13144c4c
lea eax, [ebp - 4]
call fcn.13144c28
ret