Function at 0x49a0c6
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a4792
mov eax, dword fs:[0]
push eax
sub esp, 0x2fc
mov eax, dword [0x4d406c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
and dword [ebp - 0x2dc], 0
push 0x250
push 0
lea eax, [ebp - 0x2d8]
push eax
call fcn.0045e560
add esp, 0xc
push 0x4b3bcc
push dword [ebp + 8]
lea eax, [ebp - 0x40]
push eax
call fcn.004098b4
add esp, 0xc
and dword [ebp - 4], 0
lea eax, [ebp - 0x2d8]
push eax
lea ecx, [ebp - 0x40]
call fcn.00408b05
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x2e0], eax
cmp dword [ebp - 0x2e0], 0xffffffff
je 0x49a325
mov eax, dword [ebp - 0x2d8]
and eax, 0x10
je 0x49a226
push 0x4b3bd8
lea eax, [ebp - 0x2ac]
push eax
call fcn.0046235b
pop ecx
pop ecx
test eax, eax
je 0x49a221
push 0x4b3be0
lea eax, [ebp - 0x2ac]
push eax
call fcn.0046235b
pop ecx
pop ecx
test eax, eax
je 0x49a221
push 0x4b3be4
push dword [ebp + 8]
lea eax, [ebp - 0x70]
push eax
call fcn.004098b4
add esp, 0xc
mov dword [ebp - 0x2e8], eax
mov eax, dword [ebp - 0x2e8]
mov dword [ebp - 0x2ec], eax
mov byte [ebp - 4], 1
lea eax, [ebp - 0x2ac]
push eax
push dword [ebp - 0x2ec]
lea eax, [ebp - 0x58]
push eax
call fcn.00412622
add esp, 0xc
mov dword [ebp - 0x2f0], eax
mov eax, dword [ebp - 0x2f0]
mov dword [ebp - 0x2f4], eax
mov byte [ebp - 4], 2
push dword [ebp + 0xc]
push dword [ebp - 0x2f4]
call fcn.0049a0c6
pop ecx
pop ecx
add eax, dword [ebp - 0x2dc]
mov dword [ebp - 0x2dc], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.00408cf0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.00408cf0
jmp 0x49a304
mov eax, dword [ebp - 0x2dc]
inc eax
mov dword [ebp - 0x2dc], eax
push 0x4b3be8
push dword [ebp + 8]
lea eax, [ebp - 0x88]
push eax
call fcn.004098b4
add esp, 0xc
mov dword [ebp - 0x2f8], eax
mov eax, dword [ebp - 0x2f8]
mov dword [ebp - 0x2fc], eax
mov byte [ebp - 4], 3
lea eax, [ebp - 0x2ac]
push eax
push dword [ebp - 0x2fc]
lea eax, [ebp - 0x28]
push eax
call fcn.00412622
add esp, 0xc
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x88]
call fcn.00408cf0
push 0
push 0x80
push 3
push 0
push 0
lea ecx, [ebp - 0x28]
call fcn.00408b05
mov edx, SysReAllocString
mov ecx, eax
call fcn.004430c2
mov dword [ebp - 0x2e4], eax
xorps xmm0, xmm0
movlpd qword [ebp - 0x308], xmm0
lea eax, [ebp - 0x308]
push eax
push dword [ebp - 0x2e4]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x49a2ed
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
add ecx, dword [ebp - 0x308]
mov eax, dword [eax + 4]
adc eax, dword [ebp - 0x304]
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
mov dword [edx + 4], eax
mov ecx, dword [ebp - 0x2e4]
call fcn.00443166
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00408cf0
lea edx, [ebp - 0x2d8]
mov ecx, dword [ebp - 0x2e0]
call fcn.00443186
test eax, eax
jne 0x49a320
or dword [ebp - 0x2e0], 0xffffffff
jmp 0x49a142
mov eax, dword [ebp - 0x2dc]
mov dword [ebp - 0x300], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00408cf0
mov eax, dword [ebp - 0x300]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045c170
leave
ret