Function at 0x46de8b
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5230bb
mov eax, dword fs:[0]
push eax
mov eax, 0x1110
call fcn.0050ead0
mov eax, dword [0x585698]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, ecx
mov dword [ebp - 0x1098], eax
mov eax, edi
lea esi, [ebp - 0x1064]
call fcn.0046e4f6
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x1060], ebx
jne 0x46df18
push ebx
push 0x80
push 4
push ebx
push 1
push SysReAllocString
push dword [ebp - 0x1064]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1060], eax
cmp eax, 0xffffffff
je 0x46e241
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x1064]
call fcn.0046e34d
lea esi, [ebp - 0x1064]
call fcn.0046e653
lea eax, [ebp - 0x1070]
push eax
push 4
lea eax, [ebp - 0x1068]
push eax
mov ecx, esi
mov dword [ebp - 0x1070], ebx
mov dword [ebp - 0x1068], ebx
call fcn.0046e532
push dword [edi]
mov dword [ebp - 0x1070], 0x14
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
call fcn.004f192a
mov edi, eax
sub edi, 0xe
neg edi
sbb edi, edi
inc edi
pop ecx
mov dword [ebp - 0x1094], edi
jne 0x46df83
sub dword [ebp - 0x1070], 4
cmp dword [ebp - 0x1068], ebx
jbe 0x46e22d
mov eax, dword [ebp - 0x1070]
dec dword [ebp - 0x1068]
lea ecx, [ebp - 0x106c]
push ecx
push eax
mov dword [ebp - 0x106c], eax
lea eax, [ebp - 0x1088]
push eax
lea ecx, [ebp - 0x1064]
call fcn.0046e532
mov esi, eax
cmp dword [ebp - 0x1060], ebx
je 0x46dfd4
push ebx
push dword [ebp - 0x1060]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
jmp 0x46dfd6
xor eax, eax
cmp esi, ebx
je 0x46e233
cmp dword [ebp - 0x106c], ebx
jbe 0x46e233
cmp dword [ebp - 0x1080], eax
jae 0x46e233
movzx ecx, word [ebp - 0x107c]
cmp ecx, eax
jae 0x46e233
movzx ecx, word [ebp - 0x107a]
cmp ecx, eax
jae 0x46e233
lea esi, [ebp - 0x38]
call fcn.004048e0
lea esi, [ebp - 0x34]
call fcn.004048e0
lea esi, [ebp - 0x30]
call fcn.004048e0
push 0x10
lea eax, [ebp - 0x2c]
push ebx
push eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call fcn.004f18b0
add esp, 0xc
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1084]
mov dword [ebp - 0x1090], eax
mov eax, dword [ebp - 0x1088]
mov dword [ebp - 0x108c], eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x1090]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea eax, [ebp - 0x1064]
push eax
push dword [ebp - 0x1080]
lea eax, [ebp - 0x38]
push eax
call fcn.0046e2fb
add esp, 0xc
lea eax, [ebp - 0x1064]
push eax
movzx eax, word [ebp - 0x107c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.0046e2fb
add esp, 0xc
lea eax, [ebp - 0x1064]
push eax
movzx eax, word [ebp - 0x107a]
push eax
mov eax, esi
push eax
call fcn.0046e2fb
add esp, 0xc
cmp edi, ebx
je 0x46e121
cmp dword [ebp - 0x1078], ebx
je 0x46e121
cmp dword [ebp - 0x1060], ebx
je 0x46e0df
push ebx
push dword [ebp - 0x1060]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
jmp 0x46e0e1
xor eax, eax
cmp dword [ebp - 0x1078], eax
jae 0x46e223
push dword [ebp - 0x1078]
mov dword [ebp - 0x109c], ebx
call fcn.004f0fe5
pop ecx
mov esi, eax
lea eax, [ebp - 0x109c]
push eax
push dword [ebp - 0x1078]
lea ecx, [ebp - 0x1064]
push esi
call fcn.0046e532
push esi
call fcn.004f2b13
pop ecx
sub esp, 0x34
mov eax, esp
mov dword [ebp - 0x106c], esp
lea ecx, [ebp - 0x48]
push ecx
push eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call fcn.0046e276
push dword [ebp - 0x108c]
lea edi, [ebp - 0x111c]
push dword [ebp - 0x1090]
call fcn.0047482b
add esp, 0x3c
mov byte [ebp - 4], 2
mov ecx, dword [eax]
mov dword [ebp - 0x10e0], ecx
mov ecx, dword [eax + 4]
add eax, 8
push eax
lea eax, [ebp - 0x10d8]
push eax
mov dword [ebp - 0x10dc], ecx
call fcn.0046e276
mov edi, dword [ebp - 0x1098]
mov byte [ebp - 4], 3
mov eax, dword [edi + 0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x106c], eax
mov byte [ebp - 0x1074], 1
jmp 0x46e1c9
lea eax, [esi + 0xc]
push eax
lea eax, [ebp - 0x10e0]
push eax
mov dword [ebp - 0x106c], esi
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
setl byte [ebp - 0x1074]
cmp byte [ebp - 0x1074], bl
je 0x46e1c6
mov esi, dword [esi]
jmp 0x46e1c9
mov esi, dword [esi + 8]
cmp byte [esi + 0x49], bl
je 0x46e19a
mov ecx, dword [ebp - 0x106c]
lea eax, [ebp - 0x10e0]
push eax
push dword [ebp - 0x1074]
lea eax, [ebp - 0x10a4]
push eax
mov esi, edi
call fcn.00473c3b
lea esi, [ebp - 0x10d8]
call fcn.0046dae6
lea esi, [ebp - 0x1114]
call fcn.0046dae6
lea esi, [ebp - 0x48]
mov byte [ebp - 4], bl
call fcn.0046dae6
cmp dword [ebp - 0x1068], ebx
jbe 0x46e22d
mov edi, dword [ebp - 0x1094]
jmp 0x46df8f
lea esi, [ebp - 0x48]
call fcn.0046dae6
jmp 0x46e233
dec dword [ebp - 0x1068]
lea esi, [ebp - 0x1064]
call fcn.0046e614
xor ebx, ebx
inc ebx
lea esi, [ebp - 0x1064]
call fcn.0046e614
mov eax, dword [ebp - 0x1064]
add eax, 0xfffffff0
call fcn.00405521
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004f189b
leave
ret