Function at 0x4ce7f0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x122c
call fcn.004e1f60
mov eax, dword [0x55e2f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, 0x516968
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1210], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1224], eax
lea edx, [edi + 0x806]
mov dword [ebp - 0x1214], 0x1e
mov dword [edi], 0
sub edx, ecx
mov dword [edi + 0x100c], 0
mov dword [edi + 0x1014], 0xffffffff
mov dword [edi + 0x1028], 0
nop word [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x4ce860
mov ebx, dword [ebp - 0x1210]
lea edx, [edi + 4]
mov ecx, ebx
sub edx, ebx
nop dword [eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x4ce880
lea esi, [edi + 0x1050]
mov dword [edi + 0x1048], 0
push ebx
mov dword [edi + 0x104c], 0
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00429e10
add esp, 4
test eax, eax
je 0x4ce8fa
push esi
lea eax, [edi + 0x1048]
push eax
push ebx
call fcn.004cac60
add esp, 0xc
test eax, eax
je 0x4ce8fa
mov dword [edi + 0x1048], 0
mov dword [edi + 0x104c], 0
mov dword [esi], 0
mov dword [esi + 4], 0
lea ebx, [edi + 4]
push ebx
call fcn.00429b60
add esp, 4
mov dword [edi + 0x1010], eax
test eax, eax
je 0x4ce967
lea eax, [ebp - 0x120c]
push eax
lea eax, [ebp - 0xa08]
push eax
push ebx
call fcn.00426bf0
mov ebx, eax
add esp, 0xc
mov dword [ebp - 0x1214], ebx
test ebx, ebx
jne 0x4cece5
lea ecx, [ebp - 0xa08]
mov eax, ecx
lea edx, [edi + 0x806]
sub edx, eax
nop word [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x4ce950
xor eax, eax
lea ebx, [edi + 4]
jmp 0x4ce984
lea edx, [ebp - 0x120c]
mov ecx, ebx
sub edx, ebx
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x4ce971
mov eax, dword [ebp + 0x18]
cmp dword [ebp + 0x14], 0
mov dword [ebp - 0x1210], eax
jne 0x4ce994
test eax, eax
je 0x4ce999
mov eax, 0x40000000
push 0
push 0
push 3
push 0
push 3
or eax, 0x80000000
push eax
lea eax, [ebp - 0x120c]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [edi + 0x1014], eax
cmp eax, 0xffffffff
jne 0x4ce9cb
mov ebx, 1
jmp 0x4ceccd
cmp dword [edi + 0x1010], 0
je 0x4ce9f1
push 0
lea ecx, [ebp - 0x122c]
push ecx
push 0
push 0
push 0
push 0
push 0x90083
push eax
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
cmp dword [edi + 0x1010], 0
mov dword [edi], 1
jne 0x4cea39
cmp dword [ebp - 0x1210], 0
je 0x4cea30
lea eax, [edi + 0x1034]
push eax
lea eax, [edi + 0x103c]
push eax
lea eax, [edi + 0x102c]
push eax
push dword [edi + 0x1014]
call dword [sym.imp.KERNEL32.DLL_GetFileTime]
mov dword [edi + 0x1028], eax
cmp dword [edi + 0x1010], 0
je 0x4cea79
lea eax, [ebp - 0x1220]
push eax
push ebx
call fcn.004275e0
add esp, 8
test eax, eax
je 0x4ce9c1
mov ecx, dword [ebp - 0x1220]
mov eax, ecx
mov edx, dword [ebp - 0x121c]
or eax, edx
jne 0x4cea6b
lea ebx, [eax + 7]
jmp 0x4ceccd
mov dword [edi + 0x1018], ecx
mov dword [edi + 0x101c], edx
jmp 0x4ceaac
lea eax, [ebp - 0x1220]
push eax
push dword [edi + 0x1014]
call dword [sym.imp.KERNEL32.DLL_GetFileSizeEx]
test eax, eax
je 0x4ce9c1
mov eax, dword [ebp - 0x1220]
mov dword [edi + 0x1018], eax
mov eax, dword [ebp - 0x121c]
mov dword [edi + 0x101c], eax
push ebx
call fcn.00427e90
mov edx, dword [esi]
add esp, 4
mov dword [ebp - 0x1228], eax
mov ecx, edx
mov eax, dword [esi + 4]
or ecx, eax
jne 0x4cead9
mov eax, dword [edi + 0x1018]
mov dword [esi], eax
mov eax, dword [edi + 0x101c]
mov dword [esi + 4], eax
jmp 0x4ceae5
mov dword [edi + 0x1018], edx
mov dword [edi + 0x101c], eax
cmp dword [ebp - 0x1224], 0
jne 0x4ceb01
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e1f40
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x1c]
xor ecx, ecx
mov esi, dword [ebp - 0x1214]
mov ebx, dword [ebp - 0x1218]
mov dword [ebp - 0x1210], ecx
nop dword [eax + eax]
mov eax, ecx
sub eax, 0
je 0x4cebaf
sub eax, 1
je 0x4ceb70
sub eax, 1
jne 0x4cebe1
test edx, edx
jne 0x4ceca0
cmp dword [edi + 0x1010], edx
je 0x4ceb59
cmp dword [ebp - 0x1228], 0x200
jne 0x4cec98
mov ebx, dword [edi + 0x1018]
mov esi, dword [edi + 0x101c]
sub ebx, 0x600
sbb esi, 0
jmp 0x4cebe1
mov edx, dword [edi + 0x101c]
mov eax, dword [edi + 0x1018]
test edx, edx
jb 0x4cec90
ja 0x4ceb91
cmp eax, 0x20000
jb 0x4cec90
cmp dword [ebp + 0x1c], 0
je 0x4ceba6
mov ebx, eax
mov esi, edx
sub ebx, 0x10000
sbb esi, 0
jmp 0x4cebe1
mov ebx, 0x10000
xor esi, esi
jmp 0x4cebe1
test edx, edx
je 0x4cebca
mov ebx, dword [edi + 0x1018]
mov esi, dword [edi + 0x101c]
sub ebx, 0x20000
sbb esi, 0
jmp 0x4cebe1
xorps xmm0, xmm0
movlpd qword [ebp - 0x1218], xmm0
mov esi, dword [ebp - 0x1214]
mov ebx, dword [ebp - 0x1218]
mov ecx, dword [edi + 0x1048]
lea edx, [ebp - 0x121c]
mov eax, dword [edi + 0x104c]
add ecx, ebx
push edx
lea edx, [ebp - 0x204]
adc eax, esi
push edx
push eax
push ecx
push dword [edi + 0x1014]
push dword [edi + 0x1010]
call fcn.004c8ba0
add esp, 0x18
test eax, eax
je 0x4ce9c1
cmp dword [ebp - 0x121c], 0x200
je 0x4cec48
cmp dword [edi + 0x1010], 0
je 0x4cec48
push 0x200
lea eax, [ebp - 0x204]
push 0
push eax
call fcn.004e46b0
add esp, 0xc
push 0
push 0
lea eax, [edi + 0x100c]
push eax
push dword [ebp - 0x1224]
lea eax, [ebp - 0x204]
push eax
push 0
call fcn.004c8cc0
add esp, 0x18
mov dword [ebp - 0x1214], eax
cmp eax, 3
jne 0x4ceca7
mov ecx, dword [ebp - 0x1210]
mov edx, dword [ebp + 0x1c]
inc ecx
mov dword [ebp - 0x1210], ecx
cmp ecx, 3
jl 0x4ceb20
jmp 0x4cecbf
mov eax, dword [ebp - 0x1214]
jmp 0x4cec7b
mov eax, dword [ebp - 0x1214]
jmp 0x4cec7e
mov ebx, 3
jmp 0x4ceccd
mov ecx, dword [ebp - 0x1210]
mov dword [edi + 0x1020], ebx
mov dword [edi + 0x1024], esi
mov dword [edi + 0x1008], ecx
test eax, eax
je 0x4ceaee
mov ebx, dword [ebp - 0x1214]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push edi
mov esi, eax
call fcn.004ce710
add esp, 4
push esi
call dword [sym.imp.KERNEL32.DLL_SetLastError]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e1f40
mov esp, ebp
pop ebp
ret