Function at 0x10047f53
Capabilities:
Get file size

Disassembly:
push 0x54
mov eax, 0x10091af4
call fcn.1008721d
mov ebx, ecx
mov ecx, dword [ebx + 0x10]
mov eax, dword [ebx + 4]
mov dword [ebp - 0x54], 0x1001969c
mov dword [ebp - 0x50], ecx
mov eax, dword [eax]
sub eax, 0x10
call fcn.100791e7
add eax, 0x10
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], 0x10019674
and dword [ebp - 4], 0
lea edi, [ebx + 0x14]
push edi
lea ecx, [ebp - 0x54]
call fcn.1005b898
mov dword [ebp - 0x3c], eax
test eax, eax
js 0x10047fba
push 0x1000d0b0
lea eax, [ebp - 0x38]
push eax
call fcn.10058a90
mov byte [ebp - 4], 1
push dword [eax]
push 2
jmp 0x100481f1
mov eax, dword [ebx]
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
je 0x100481db
push 0x1000d108
lea eax, [ebp - 0x3c]
push eax
call fcn.10058a90
push 0x1000d0fc
lea ecx, [ebp - 0x38]
push ecx
mov edi, eax
mov byte [ebp - 4], 2
call fcn.10058a35
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.1007924a
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x3c]
add eax, 0xfffffff0
call fcn.1007924a
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
mov esi, dword [eax]
call fcn.10047d7a
xor esi, esi
mov dword [ebp - 0x3c], eax
cmp eax, esi
jl 0x10048199
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.100280e5
mov dword [ebp - 0x3c], eax
cmp eax, esi
jl 0x10048155
push esi
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, dword [ebx + 8]
jne 0x1004808b
cmp esi, dword [ebx + 0xc]
jne 0x1004808b
push 0x1000d178
lea eax, [ebp - 0x38]
push eax
lea edi, [ebx + 0x14]
call fcn.10058a90
mov byte [ebp - 4], 5
jmp 0x10048104
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x100480c2
mov eax, dword [ebp - 0x60]
xor ecx, ecx
cmp eax, dword [ebx + 8]
jne 0x100480c2
cmp ecx, dword [ebx + 0xc]
jne 0x100480c2
push 0x1000d178
lea eax, [ebp - 0x38]
push eax
lea edi, [ebx + 0x14]
call fcn.10058a90
mov byte [ebp - 4], 6
jmp 0x10048104
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 0x1004811f
cmp ecx, dword [ebx + 0xc]
jne 0x1004811f
push 0x1000d178
lea eax, [ebp - 0x38]
push eax
lea edi, [ebx + 0x14]
call fcn.10058a90
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.1007924a
jmp 0x10048189
push 0x1000d1c0
lea eax, [ebp - 0x38]
push eax
lea edi, [ebx + 0x14]
call fcn.10058a90
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.1007924a
mov dword [ebp - 0x3c], 0x80091007
jmp 0x10048189
push 0x1000d240
lea eax, [ebp - 0x38]
push eax
lea edi, [ebx + 0x14]
call fcn.10058a90
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.1007924a
mov dword [ebp - 0x3c], 0x80004005
cmp dword [ebp - 0x44], esi
je 0x10048206
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10048206
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 0x1000d2c8
push eax
call fcn.10078ea6
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 0x10048201
push 0x1000d330
lea eax, [ebp - 0x38]
push eax
call fcn.10058a90
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.1007924a
mov eax, dword [ebp - 0x4c]
add eax, 0xfffffff0
mov dword [ebp - 0x54], 0x1001969c
call fcn.1007924a
mov eax, dword [ebp - 0x3c]
call fcn.100872af
ret