Function at 0x100481ac
Capabilities:
Get file size

Disassembly:
push 0x54
mov eax, 0x1009182f
call fcn.10086e8d
mov ebx, ecx
mov ecx, dword [ebx + 0x10]
mov eax, dword [ebx + 4]
mov dword [ebp - 0x54], 0x100196bc
mov dword [ebp - 0x50], ecx
mov eax, dword [eax]
sub eax, 0x10
call fcn.10078eab
add eax, 0x10
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], 0x10019694
and dword [ebp - 4], 0
lea edi, [ebx + 0x14]
push edi
lea ecx, [ebp - 0x54]
call fcn.1005ba3b
mov dword [ebp - 0x3c], eax
test eax, eax
js 0x10048213
push 0x1000d0c8
lea eax, [ebp - 0x38]
push eax
call fcn.10058cd5
mov byte [ebp - 4], 1
push dword [eax]
push 2
jmp 0x1004844a
mov eax, dword [ebx]
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
je 0x10048434
push 0x1000d120
lea eax, [ebp - 0x3c]
push eax
call fcn.10058cd5
push 0x1000d114
lea ecx, [ebp - 0x38]
push ecx
mov edi, eax
mov byte [ebp - 4], 2
call fcn.10058c7a
mov byte [ebp - 4], 3
mov eax, dword [eax]
mov ecx, dword [ebx + 0x10]
mov edx, dword [ecx]
push eax
push 2
call dword [edx + 4]
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff0
call fcn.10078f0e
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x3c]
add eax, 0xfffffff0
call fcn.10078f0e
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
mov esi, dword [eax]
call fcn.10047fd3
xor esi, esi
mov dword [ebp - 0x3c], eax
cmp eax, esi
jl 0x100483f2
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], esi
push esi
push 0x80
push 3
mov byte [ebp - 4], 4
mov eax, dword [ebx + 4]
mov eax, dword [eax]
push 1
push SysReAllocStringLen
push eax
lea edi, [ebp - 0x44]
call fcn.1002809d
mov dword [ebp - 0x3c], eax
cmp eax, esi
jl 0x100483ae
push esi
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, dword [ebx + 8]
jne 0x100482e4
cmp esi, dword [ebx + 0xc]
jne 0x100482e4
push 0x1000d190
lea eax, [ebp - 0x38]
push eax
lea edi, [ebx + 0x14]
call fcn.10058cd5
mov byte [ebp - 4], 5
jmp 0x1004835d
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1004831b
mov eax, dword [ebp - 0x60]
xor ecx, ecx
cmp eax, dword [ebx + 8]
jne 0x1004831b
cmp ecx, dword [ebx + 0xc]
jne 0x1004831b
push 0x1000d190
lea eax, [ebp - 0x38]
push eax
lea edi, [ebx + 0x14]
call fcn.10058cd5
mov byte [ebp - 4], 6
jmp 0x1004835d
push 8
pop ecx
xor eax, eax
mov dword [ebp - 0x34], esi
lea edi, [ebp - 0x30]
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 4]
mov eax, dword [eax]
lea ecx, [ebp - 0x34]
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
mov eax, dword [ebp - 0x14]
xor ecx, ecx
cmp eax, dword [ebx + 8]
jne 0x10048378
cmp ecx, dword [ebx + 0xc]
jne 0x10048378
push 0x1000d190
lea eax, [ebp - 0x38]
push eax
lea edi, [ebx + 0x14]
call fcn.10058cd5
mov byte [ebp - 4], 7
mov ebx, dword [ebx + 0x10]
push dword [eax]
mov edx, dword [ebx]
push 2
mov ecx, ebx
call dword [edx + 4]
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff0
call fcn.10078f0e
jmp 0x100483e2
push 0x1000d1d8
lea eax, [ebp - 0x38]
push eax
lea edi, [ebx + 0x14]
call fcn.10058cd5
mov byte [ebp - 4], 8
mov ebx, dword [ebx + 0x10]
push dword [eax]
mov edx, dword [ebx]
push esi
mov ecx, ebx
call dword [edx + 4]
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff0
call fcn.10078f0e
mov dword [ebp - 0x3c], 0x80091007
jmp 0x100483e2
push 0x1000d258
lea eax, [ebp - 0x38]
push eax
lea edi, [ebx + 0x14]
call fcn.10058cd5
mov byte [ebp - 4], 9
mov ebx, dword [ebx + 0x10]
push dword [eax]
mov edx, dword [ebx]
push esi
mov ecx, ebx
call dword [edx + 4]
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff0
call fcn.10078f0e
mov dword [ebp - 0x3c], 0x80004005
cmp dword [ebp - 0x44], esi
je 0x1004845f
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1004845f
mov eax, dword [0x100aee70]
mov ecx, 0x100aee70
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 0xa
push dword [ebp - 0x3c]
lea eax, [ebp - 0x38]
push dword [ebx + 0x14]
push 0x1000d2e0
push eax
call fcn.10078b7a
mov ebx, dword [ebx + 0x10]
mov edi, dword [ebp - 0x38]
mov eax, dword [ebx]
add esp, 0x10
push edi
push esi
mov ecx, ebx
call dword [eax + 4]
lea eax, [edi - 0x10]
jmp 0x1004845a
push 0x1000d348
lea eax, [ebp - 0x38]
push eax
call fcn.10058cd5
mov byte [ebp - 4], 0xb
push dword [eax]
push 1
mov ebx, dword [ebx + 0x10]
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 4]
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff0
call fcn.10078f0e
mov eax, dword [ebp - 0x4c]
add eax, 0xfffffff0
mov dword [ebp - 0x54], 0x100196bc
call fcn.10078f0e
mov eax, dword [ebp - 0x3c]
call fcn.10086f1f
ret