Function at 0x13a666b1
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
mov eax, dword [0x13a6e004]
cmp eax, 0x13a6e004
je 0x13a666eb
test byte [eax + 0x1c], 2
je 0x13a666eb
cmp byte [eax + 0x19], 5
jb 0x13a666eb
push 0x13a03e70
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.13a58cc1
lea eax, [ebp - 0xc]
mov edi, 0x654
push edi
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
call fcn.13a6391c
mov esi, eax
cmp esi, ebx
jne 0x13a66713
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x13a669de
push edi
push ebx
push esi
call sub.msvcrt.dll_memset
mov ecx, dword [ebp + 0x10]
add esp, 0xc
push ebx
push ebx
neg ecx
push 3
sbb ecx, ecx
mov eax, 0xc0000000
push ebx
and ecx, eax
push 1
add ecx, eax
push ecx
push dword [ebp + 8]
call fcn.13a6518c
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x13a66705
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0x634], eax
cmp eax, 0xffffffff
je 0x13a66705
cmp eax, 8
ja 0x13a66769
mov dword [ebp - 4], 0x57
jmp 0x13a669e3
xor eax, eax
cmp dword [ebp + 0x10], ebx
push ebx
sete al
push ebx
push ebx
lea eax, [eax + eax + 0x8000002]
push eax
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 4], eax
cmp eax, ebx
je 0x13a66705
xor ecx, ecx
cmp dword [ebp + 0x10], ebx
push ebx
sete cl
push ebx
push ebx
lea ecx, [ecx + ecx + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 8], eax
cmp eax, ebx
je 0x13a66705
push dword [ebp + 8]
lea eax, [esi + 0x18]
push 0x104
push eax
call fcn.13a66477
mov edi, eax
cmp edi, ebx
jge 0x13a66812
mov eax, dword [0x13a6e004]
cmp eax, 0x13a6e004
je 0x13a667f4
test byte [eax + 0x1c], 2
je 0x13a667f4
cmp byte [eax + 0x19], 2
jb 0x13a667f4
push edi
push 0x13a03e70
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.13a5a529
mov eax, edi
and eax, 0x1fff0000
cmp eax, 0x70000
jne 0x13a6680a
movzx eax, di
jmp 0x13a6670b
mov dword [ebp - 4], edi
jmp 0x13a669de
mov ecx, dword [esi + 8]
mov edx, dword [ecx]
lea eax, [esi + 0x220]
mov dword [eax], edx
mov ecx, dword [ecx + 4]
mov dword [eax + 4], ecx
mov ecx, 0x4949
cmp dx, cx
jne 0x13a669d7
cmp word [esi + 0x222], 0x2a
jne 0x13a669d7
mov edi, dword [esi + 0x224]
cmp edi, ebx
je 0x13a669ce
mov edx, esi
mov eax, edi
call fcn.13a65d6c
test eax, eax
je 0x13a669ce
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 0xc]
cmp eax, ecx
je 0x13a6687e
mov ecx, eax
mov eax, dword [eax]
cmp dword [ecx + 8], edi
je 0x13a66966
lea ecx, [ebp - 0xc]
cmp eax, ecx
jne 0x13a6686a
push 0xc
call fcn.13a6391c
cmp eax, ebx
je 0x13a66999
mov dword [eax + 8], edi
mov ecx, dword [ebp - 8]
mov dword [eax + 4], ecx
lea edx, [ebp - 0xc]
mov dword [eax], edx
mov dword [ecx], eax
mov dword [ebp - 8], eax
mov eax, dword [esi + 8]
movzx ecx, word [eax + edi]
imul ecx, ecx, 0xc
add ecx, eax
mov edi, dword [ecx + edi + 2]
mov edx, esi
mov eax, edi
call fcn.13a65d6c
test eax, eax
je 0x13a669ce
inc dword [esi + 0x330]
cmp edi, ebx
jne 0x13a66860
mov eax, dword [esi + 0x224]
mov dword [esi + 0x338], eax
mov eax, dword [ebp + 0x14]
push eax
xor edi, edi
inc edi
push edi
push esi
mov dword [esi + 0x620], eax
call fcn.13a65e92
test eax, eax
je 0x13a669ce
mov ecx, dword [esi + 0x330]
mov eax, dword [ebp + 0xc]
mov dword [eax + 8], ecx
mov ecx, dword [esi + 0x5f0]
mov dword [eax], ecx
mov ecx, dword [esi + 0x5f4]
mov dword [eax + 4], ecx
mov ecx, dword [esi + 0x61c]
mov dword [eax + 0xc], ecx
mov ecx, dword [esi + 0x620]
mov dword [eax + 0x18], ecx
mov ecx, dword [esi + 0x648]
mov dword [eax + 0x1c], ecx
mov ecx, dword [esi + 0x340]
mov dword [eax + 0x14], ecx
push 0x288
lea eax, [esi + 0x348]
lea ecx, [esi + 0x420]
push ebx
push eax
mov dword [esi + 0x5d4], eax
mov dword [esi + 0x5d0], ecx
mov dword [esi + 0x5d8], edi
call sub.msvcrt.dll_memset
add esp, 0xc
jmp 0x13a66a24
mov dword [ebp - 4], 0xb
mov eax, dword [0x13a6e004]
cmp eax, 0x13a6e004
je 0x13a669e3
test byte [eax + 0x1c], 2
je 0x13a669e3
cmp byte [eax + 0x19], 2
jb 0x13a669e3
push 0x13a03e70
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
invalid
invalid