Function at 0x479336
Capabilities:
Get file size

Disassembly:
push 0x80
mov eax, 0x4d84a8
call fcn.004becb0
lea ecx, [ebp - 0x4c]
call fcn.004a451b
and dword [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.004a451b
mov byte [ebp - 4], 1
push dword [ebp + 0xc]
lea edi, [ebp - 0x38]
lea ebx, [ebp - 0x4c]
call fcn.00479911
xor edi, edi
cmp eax, edi
jne 0x479390
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0
call fcn.004a47f7
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.004a47f7
xor eax, eax
jmp 0x479427
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x1c], eax
cmp eax, dword [ebp - 0x30]
jne 0x479371
cmp eax, edi
je 0x479371
lea ecx, [ebp - 0x74]
call fcn.004a451b
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 2
call fcn.004a451b
lea esi, [ebp - 0x8c]
call fcn.004789bc
mov byte [ebp - 4], 4
call fcn.00499991
push eax
lea ecx, [ebp - 0x24]
call fcn.004727f7
xor ebx, ebx
mov byte [ebp - 4], 5
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0x1c], edi
ja 0x479431
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.004027b0
lea esi, [ebp - 0x8c]
call fcn.00479590
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 2
call fcn.004a47f7
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 1
call fcn.004a47f7
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0
call fcn.004a47f7
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.004a47f7
xor eax, eax
inc eax
call fcn.004bed88
ret 0xc
xor edi, edi
cmp ebx, edi
jl 0x47958a
cmp ebx, dword [ebp - 0x44]
jge 0x47958a
mov eax, dword [ebp - 0x48]
lea eax, [eax + ebx*4]
push eax
lea ecx, [ebp + 0xc]
call fcn.0040228a
mov byte [ebp - 4], 6
cmp ebx, dword [ebp - 0x30]
jge 0x47958a
mov eax, dword [ebp - 0x34]
lea eax, [eax + ebx*4]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040228a
mov byte [ebp - 4], 7
call fcn.00499991
push eax
lea ecx, [ebp - 0x10]
call fcn.004727f7
mov ecx, dword [ebp + 8]
mov byte [ebp - 4], 8
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0x10]
push eax
mov edx, esi
call fcn.00479061
test eax, eax
jne 0x4794c1
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004027b0
add esi, 0xfffffff0
mov ecx, esi
call fcn.004027b0
mov byte [ebp - 4], 5
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.004027b0
jmp 0x479578
push edi
push edi
push 3
push edi
push 3
push edi
mov edi, dword [ebp - 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x20], eax
cmp eax, 0xffffffff
jne 0x4794e2
add edi, 0xfffffff0
mov ecx, edi
jmp 0x47949e
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push dword [ebp - 0x20]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
ja 0x47950b
add edi, 0xfffffff0
mov ecx, edi
call fcn.004027b0
add esi, 0xfffffff0
mov ecx, esi
jmp 0x479561
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
and dword [ebp - 0x78], 0
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x88]
call fcn.0040257e
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x84]
call fcn.0040257e
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x8c]
call fcn.0040257e
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x7c], ebx
lea ebx, [ebp - 0x8c]
call fcn.0047a11b
lea ecx, [edi - 0x10]
call fcn.004027b0
lea ecx, [esi - 0x10]
call fcn.004027b0
mov byte [ebp - 4], 5
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.004027b0
mov ebx, dword [ebp - 0x14]
inc ebx
mov dword [ebp - 0x14], ebx
cmp ebx, dword [ebp - 0x1c]
jb 0x47942f
jmp 0x4793de
call fcn.004998d4
int3