Function at 0x1004d7c2
Capabilities:
Get file size

Disassembly:
push 0x54
mov eax, 0x100a7acd
call fcn.10094bdd
mov ebx, ecx
mov ecx, dword [ebx + 0x10]
mov eax, dword [ebx + 4]
mov dword [ebp - 0x54], 0x1001bec0
mov dword [ebp - 0x50], ecx
mov eax, dword [eax]
sub eax, 0x10
call fcn.10084ad6
add eax, 0x10
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], 0x1001be98
and dword [ebp - 4], 0
lea edi, [ebx + 0x14]
push edi
lea eax, [ebp - 0x54]
push eax
call fcn.10062de4
mov dword [ebp - 0x3c], eax
test eax, eax
js 0x1004d82a
push 0x1000d480
lea eax, [ebp - 0x38]
push eax
call fcn.1005fd4e
mov byte [ebp - 4], 1
push dword [eax]
push 2
jmp 0x1004da61
mov eax, dword [ebx]
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
je 0x1004da4b
push 0x1000d4d8
lea eax, [ebp - 0x3c]
push eax
call fcn.1005fd4e
push 0x1000d4cc
lea ecx, [ebp - 0x38]
push ecx
mov edi, eax
mov byte [ebp - 4], 2
call fcn.1005fcf3
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.10084b37
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x3c]
add eax, 0xfffffff0
call fcn.10084b37
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
mov esi, dword [eax]
call fcn.1004cd78
xor esi, esi
mov dword [ebp - 0x3c], eax
cmp eax, esi
jl 0x1004da09
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.1002b029
mov dword [ebp - 0x3c], eax
cmp eax, esi
jl 0x1004d9c5
push esi
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, dword [ebx + 8]
jne 0x1004d8fb
cmp esi, dword [ebx + 0xc]
jne 0x1004d8fb
push 0x1000d548
lea eax, [ebp - 0x38]
push eax
lea edi, [ebx + 0x14]
call fcn.1005fd4e
mov byte [ebp - 4], 5
jmp 0x1004d974
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1004d932
mov eax, dword [ebp - 0x60]
xor ecx, ecx
cmp eax, dword [ebx + 8]
jne 0x1004d932
cmp ecx, dword [ebx + 0xc]
jne 0x1004d932
push 0x1000d548
lea eax, [ebp - 0x38]
push eax
lea edi, [ebx + 0x14]
call fcn.1005fd4e
mov byte [ebp - 4], 6
jmp 0x1004d974
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 0x1004d98f
cmp ecx, dword [ebx + 0xc]
jne 0x1004d98f
push 0x1000d548
lea eax, [ebp - 0x38]
push eax
lea edi, [ebx + 0x14]
call fcn.1005fd4e
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.10084b37
jmp 0x1004d9f9
push 0x1000d590
lea eax, [ebp - 0x38]
push eax
lea edi, [ebx + 0x14]
call fcn.1005fd4e
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.10084b37
mov dword [ebp - 0x3c], 0x80091007
jmp 0x1004d9f9
push 0x1000d610
lea eax, [ebp - 0x38]
push eax
lea edi, [ebx + 0x14]
call fcn.1005fd4e
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.10084b37
mov dword [ebp - 0x3c], 0x80004005
cmp dword [ebp - 0x44], esi
je 0x1004da76
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1004da76
mov eax, dword [0x100bcf90]
mov ecx, 0x100bcf90
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 0x1000d698
push eax
call fcn.100847a7
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 0x1004da71
push 0x1000d700
lea eax, [ebp - 0x38]
push eax
call fcn.1005fd4e
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.10084b37
mov eax, dword [ebp - 0x4c]
add eax, 0xfffffff0
mov dword [ebp - 0x54], 0x1001bec0
call fcn.10084b37
mov eax, dword [ebp - 0x3c]
call fcn.10094c6f
ret