Function at 0x13037c50
Capabilities:
Get file size

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x130735ef
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
push 1
mov esi, ecx
push eax
call fcn.1303cdd0
mov edi, eax
or ebp, 0xffffffff
add esp, 8
cmp edi, ebp
jne 0x13037c90
push 0x1318e7d8
jmp 0x13038192
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, ebp
mov dword [esp + 0x18], eax
jne 0x13037cba
push 0x1318eae8
call fcn.1303f140
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1303819a
mov ecx, dword [esi + 0xa8]
add ecx, eax
cmp ecx, 0x6400000
jbe 0x13037ce3
push 0x1318eacc
call fcn.1303f140
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1303819a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esi + 0x9c]
call fcn.1303eaa0
test eax, eax
jne 0x13037e85
mov ecx, dword [esi + 0x9c]
lea edx, [esp + 0x14]
push edx
call fcn.1303e9e0
mov eax, dword [eax]
push 0x1318e964
push eax
mov dword [esp + 0x2c], 0
call fcn.12f5e1d4
add esp, 8
test eax, eax
je 0x13037d5f
mov ecx, dword [esi + 0x9c]
lea eax, [esp + 0x10]
push eax
call fcn.1303e9e0
mov eax, dword [eax]
push 0x1318e9e4
push eax
call fcn.12f5e1d4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.12f47220
test bl, bl
je 0x13037d5f
mov bl, 1
jmp 0x13037d61
xor bl, bl
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], ebp
call fcn.12f47220
test bl, bl
je 0x13037db2
mov ecx, dword [esi + 0x9c]
push 0x1318e964
call fcn.1303ea00
mov ecx, dword [esi + 0x9c]
push 0x1318e774
call fcn.1303e7e0
mov ecx, dword [esi + 0x9c]
push 0x1318e790
call fcn.1303ea30
mov ecx, dword [esi + 0x9c]
push 0x131911a8
call fcn.1303dcb0
push 0x5c
call fcn.12f5bf8b
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov dword [esp + 0x24], 1
je 0x13037dd7
mov ecx, eax
call fcn.1303d620
mov ebx, eax
jmp 0x13037dd9
xor ebx, ebx
push 0x1318ea04
mov ecx, ebx
mov dword [esp + 0x28], ebp
call fcn.1303ea00
push 0
push 0
mov ecx, ebx
call fcn.1303e230
mov ecx, dword [esi + 0x9c]
push ecx
mov ecx, ebx
call fcn.1303eab0
push 0x5c
call fcn.12f5bf8b
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov dword [esp + 0x24], 2
je 0x13037e27
mov ecx, eax
call fcn.1303d620
mov edi, eax
jmp 0x13037e29
xor edi, edi
push 0x1318ea54
mov ecx, edi
mov dword [esp + 0x28], ebp
call fcn.1303ea00
lea edx, [esp + 0x14]
mov ecx, ebx
push edx
call fcn.1303e1b0
mov eax, dword [eax]
push 1
push eax
mov ecx, edi
mov dword [esp + 0x2c], 3
call fcn.1303e230
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], ebp
call fcn.12f47220
push 0x1318e97c
mov ecx, edi
call fcn.1303dcb0
push ebx
mov ecx, edi
mov dword [esi + 0x9c], edi
call fcn.1303eab0
jmp 0x13037f8b
mov ecx, dword [esi + 0x9c]
lea eax, [esp + 0x14]
push eax
call fcn.1303e9e0
mov eax, dword [eax]
push 0x1318ea04
push eax
call fcn.12f5e1d4
add esp, 8
lea ecx, [esp + 0x14]
test eax, eax
sete bl
call fcn.12f47220
test bl, bl
je 0x13037f55
mov ecx, dword [esi + 0x9c]
push 0x131911a8
call fcn.1303dcb0
push 0x5c
call fcn.12f5bf8b
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov dword [esp + 0x24], 4
je 0x13037ef0
mov ecx, eax
call fcn.1303d620
mov edi, eax
jmp 0x13037ef2
xor edi, edi
push 0x1318ea54
mov ecx, edi
mov dword [esp + 0x28], ebp
call fcn.1303ea00
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esi + 0x9c]
call fcn.1303e1b0
mov eax, dword [eax]
push 1
push eax
mov ecx, edi
mov dword [esp + 0x2c], 5
call fcn.1303e230
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], ebp
call fcn.12f47220
push 0x1318e97c
mov ecx, edi
call fcn.1303dcb0
mov edx, dword [esi + 0x9c]
mov ecx, edi
push edx
call fcn.1303eab0
mov dword [esi + 0x9c], edi
jmp 0x13037f8b
mov ecx, dword [esi + 0x9c]
lea eax, [esp + 0x14]
push eax
call fcn.1303e9e0
mov eax, dword [eax]
push 0x1318ea54
push eax
call fcn.12f5e1d4
add esp, 8
lea ecx, [esp + 0x14]
test eax, eax
sete bl
call fcn.12f47220
test bl, bl
je 0x1303818d
push 0x5c
call fcn.12f5bf8b
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov dword [esp + 0x24], 6
je 0x13037fb4
mov ecx, eax
call fcn.1303d620
mov ebx, eax
mov dword [esp + 0x10], ebx
jmp 0x13037fc0
mov dword [esp + 0x10], 0
mov ebx, dword [esp + 0x10]
push 0x1318ea98
mov ecx, ebx
mov dword [esp + 0x28], ebp
call fcn.1303ea00
push 0x1318e790
mov ecx, ebx
call fcn.1303ea30
mov ecx, dword [esp + 0x2c]
push ecx
mov ecx, ebx
call fcn.1303e810
mov edi, dword [esp + 0x30]
test edi, edi
je 0x13038007
push edi
call fcn.12f5c44d
add esp, 4
test eax, eax
je 0x13038007
push 0
push edi
mov ecx, ebx
call fcn.1303e9b0
mov edi, dword [esp + 0x34]
test edi, edi
je 0x1303815c
push edi
call fcn.12f5c44d
add esp, 4
test eax, eax
je 0x1303815c
push edi
mov ecx, ebx
call fcn.1303ea90
mov ecx, dword [esi + 0x9c]
call fcn.1303eaa0
xor ebp, ebp
mov dword [esp + 0x2c], eax
test eax, eax
jle 0x13038096
mov ecx, dword [esi + 0x9c]
push ebp
call fcn.1303edc0
mov edi, eax
lea edx, [esp + 0x30]
push edx
mov ecx, edi
call fcn.1303e9e0
mov eax, dword [eax]
push 0x1318ea30
push eax
call fcn.12f5e1d4
add esp, 8
lea ecx, [esp + 0x30]
test eax, eax
sete bl
call fcn.12f47220
test bl, bl
jne 0x13038088
mov eax, dword [esp + 0x2c]
inc ebp
cmp ebp, eax
jl 0x13038041
jmp 0x13038092
test edi, edi
mov ecx, edi
jne 0x1303814b
mov ebx, dword [esp + 0x10]
push 0x5c
call fcn.12f5bf8b
add esp, 4
mov dword [esp + 0x30], eax
test eax, eax
mov dword [esp + 0x24], 7
je 0x130380bb
mov ecx, eax
call fcn.1303d620
mov ebp, eax
jmp 0x130380bd
xor ebp, ebp
push 0x1318ea30
mov ecx, ebp
mov dword [esp + 0x28], 0xffffffff
call fcn.1303ea00
push 2
push 0
mov ecx, ebp
call fcn.1303e230
mov eax, dword [esp + 0x2c]
lea edi, [eax - 1]
test edi, edi
jl 0x13038135
mov ecx, dword [esi + 0x9c]
push edi
call fcn.1303edc0
lea ecx, [esp + 0x2c]
push ecx
mov ecx, eax
call fcn.1303ea40
mov eax, dword [eax]
push 0x1318ea80
push eax
call fcn.12f5e1d4
add esp, 8
lea ecx, [esp + 0x2c]
test eax, eax
setne bl
call fcn.12f47220
test bl, bl
je 0x1303812e
mov ecx, dword [esi + 0x9c]
push ebp
push edi
call fcn.1303edd0
dec edi
jns 0x130380e7
mov ebx, dword [esp + 0x10]
mov ecx, dword [esi + 0x9c]
push ebp
push 0
call fcn.1303ec20
test ebp, ebp
mov ecx, ebp
jne 0x1303814f
jmp 0x1303819a
mov ebx, dword [esp + 0x10]
push ebx
call fcn.1303eab0
mov eax, 1
jmp 0x1303819c
push 0x1318ea80
mov ecx, ebx
call fcn.1303ea60
mov edx, dword [esp + 0x18]
mov ecx, dword [esi + 0xa8]
add ecx, edx
push ebx
mov dword [esi + 0xa8], ecx
mov ecx, dword [esi + 0x9c]
call fcn.1303eab0
mov eax, 1
jmp 0x1303819c
push 0x1318e9f8
call fcn.1303f140
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 0xc