Function at 0x4f5fc8
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
xor edx, edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404fa4
xor eax, eax
push ebp
push 0x4f6393
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
mov eax, dword [ebp - 4]
call fcn.00404fb4
push eax
call sub.KERNEL32.DLL_CreateFileA_1
mov dword [0x665f6c], eax
cmp dword [0x665f6c], 0xffffffff
je 0x4f6370
mov dword [ebp - 8], 1
lea eax, [ebp - 0xc]
push eax
mov eax, dword [0x665f6c]
push eax
call sub.KERNEL32.DLL_GetFileSize_1
mov dword [ebp - 0x10], eax
shr dword [ebp - 0x10], 9
shl dword [ebp - 0xc], 0x17
mov eax, dword [ebp - 0xc]
or eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x18], eax
jmp 0x4f60c1
push 0x6cd0f4
mov ecx, 0x200
mov edx, 1
mov eax, dword [ebp - 0x18]
call fcn.004f6c0c
mov eax, 0x6cd12a
cmp dword [eax], 0x31544146
jne 0x4f6098
mov eax, 0x6cd12e
cmp dword [eax], 0x20202036
jne 0x4f6098
xor eax, eax
mov dword [0x7cd10c], eax
jmp 0x4f60e3
mov eax, 0x6cd146
cmp dword [eax], 0x33544146
jne 0x4f60be
mov eax, 0x6cd14a
cmp dword [eax], 0x20202032
jne 0x4f60be
mov dword [0x7cd10c], 2
jmp 0x4f60e3
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cdq
push edx
push eax
mov eax, dword [ebp - 0x14]
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x4f60db
cmp eax, dword [esp]
pop edx
pop eax
ja 0x4f605e
jmp 0x4f60e3
pop edx
pop eax
jg 0x4f605e
mov eax, dword [ebp - 0x18]
cdq
push edx
push eax
mov eax, dword [ebp - 0x14]
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x4f60f7
cmp eax, dword [esp]
pop edx
pop eax
je 0x4f6370
mov eax, dword [ebp - 0x18]
mov dword [0x7cd0f4], eax
mov eax, 0x6cd0ff
mov ax, word [eax]
mov word [0x6cd0c4], ax
mov eax, 0x6cd101
mov al, byte [eax]
mov byte [0x6cd0c6], al
mov eax, 0x6cd102
mov ax, word [eax]
mov word [0x6cd0c7], ax
mov eax, 0x6cd104
mov al, byte [eax]
mov byte [0x6cd0c9], al
mov eax, 0x6cd105
mov ax, word [eax]
mov word [0x6cd0ca], ax
mov eax, 0x6cd10a
cmp word [eax], 0
jne 0x4f6162
mov eax, 0x6cd118
mov eax, dword [eax]
mov dword [0x6cd0cc], eax
jmp 0x4f616f
mov eax, 0x6cd10a
movzx eax, word [eax]
mov dword [0x6cd0cc], eax
mov eax, 0x6cd10c
mov ax, word [eax]
mov word [0x6cd0d0], ax
mov eax, 0x6cd10e
mov ax, word [eax]
mov word [0x6cd0d2], ax
mov eax, 0x6cd110
mov eax, dword [eax]
mov dword [0x6cd0d4], eax
mov eax, 0x6cd107
cmp word [eax], 0
jne 0x4f61b0
mov eax, 0x6cd114
mov eax, dword [eax]
mov dword [0x6cd0d8], eax
jmp 0x4f61bd
mov eax, 0x6cd107
movzx eax, word [eax]
mov dword [0x6cd0d8], eax
mov eax, 0x6cd0e0
call fcn.00404ae4
xor eax, eax
mov dword [0x6cd0e8], eax
cmp dword [0x7cd10c], 2
jge 0x4f6252
mov eax, 0x6cd11b
mov eax, dword [eax]
mov dword [0x6cd0dc], eax
mov dword [ebp - 0x18], 0x2b
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov dl, byte [edx + 0x6cd0f4]
call fcn.00404ccc
mov edx, dword [ebp - 0x1c]
mov eax, 0x6cd0e0
call fcn.00404dbc
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 0x36
jne 0x4f61ea
mov eax, 0x6cd0e4
call fcn.00404ae4
mov dword [ebp - 0x18], 0x36
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0x18]
mov dl, byte [edx + 0x6cd0f4]
call fcn.00404ccc
mov edx, dword [ebp - 0x20]
mov eax, 0x6cd0e4
call fcn.00404dbc
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 0x3b
jne 0x4f6222
xor eax, eax
mov dword [0x6cd0e8], eax
jmp 0x4f62d0
mov eax, 0x6cd137
mov eax, dword [eax]
mov dword [0x6cd0dc], eax
mov dword [ebp - 0x18], 0x47
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0x18]
mov dl, byte [edx + 0x6cd0f4]
call fcn.00404ccc
mov edx, dword [ebp - 0x24]
mov eax, 0x6cd0e0
call fcn.00404dbc
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 0x52
jne 0x4f6265
mov eax, 0x6cd0e4
call fcn.00404ae4
mov dword [ebp - 0x18], 0x52
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x18]
mov dl, byte [edx + 0x6cd0f4]
call fcn.00404ccc
mov edx, dword [ebp - 0x28]
mov eax, 0x6cd0e4
call fcn.00404dbc
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 0x5a
jne 0x4f629d
mov eax, 0x6cd120
mov eax, dword [eax]
mov dword [0x6cd0e8], eax
mov dl, 1
mov eax, dword [0x41ab08]
call fcn.00403c64
mov dword [0x6cd0ec], eax
movzx eax, word [0x6cd0c7]
add eax, dword [0x7cd0f4]
mov dword [ebp - 0x18], eax
push 0x6cd0f4
movzx ecx, word [0x6cd0c4]
mov edx, dword [0x6cd0cc]
mov eax, dword [ebp - 0x18]
call fcn.004f6c0c
movzx ecx, word [0x6cd0c4]
imul ecx, dword [0x6cd0cc]
mov edx, 0x6cd0f4
mov eax, dword [0x6cd0ec]
mov ebx, dword [eax]
call dword [ebx + 0x10]
xor eax, eax
mov al, byte [0x6cd0c9]
imul dword [0x6cd0cc]
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [0x7cd0f8], eax
movzx eax, word [0x6cd0ca]
shl eax, 5
shr eax, 9
add eax, dword [0x7cd0f8]
mov dword [0x7cd0fc], eax
mov dword [ebp - 8], 2
call fcn.004f63a4
test al, al
je 0x4f6370
mov eax, dword [0x6cd0d8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f639a
lea eax, [ebp - 0x28]
mov edx, 4
call fcn.00404b08
lea eax, [ebp - 4]
call fcn.00404ae4
ret