Function at 0x417f70
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45499a
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x470d08]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040a1b3
xor ebx, ebx
push 0xfffe
mov dword [ebp - 4], ebx
call fcn.004387a4
add esp, 4
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x4180c8
push 0x7fff
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp eax, ebx
jne 0x417ffc
call fcn.004033f2
lea edx, [ebp - 0x14]
push edx
mov esi, eax
mov dword [ebp - 4], 0xffffffff
call fcn.0040e95d
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor edi, edi
mov dword [ebp - 0x18], edi
push ebx
push 0x80
push 3
push ebx
push 1
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x418055
call fcn.004033f2
mov esi, eax
cmp esi, ebx
jge 0x41805a
lea ecx, [ebp - 0x14]
push ecx
mov dword [ebp - 4], 0xffffffff
call fcn.0040e95d
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, eax
mov dword [ebp - 0x18], edi
lea edx, [ebp - 0x24]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x4180a7
call fcn.004033f2
cmp edi, ebx
mov esi, eax
mov byte [ebp - 4], bl
je 0x418081
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], ebx
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 4], 0xffffffff
call fcn.0040e95d
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [ebp - 0x20], ebx
jl 0x4180f1
jg 0x4180b7
cmp dword [ebp - 0x24], 0x7fffffff
jbe 0x4180f1
cmp edi, ebx
mov byte [ebp - 4], bl
je 0x4180c8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], ebx
lea ecx, [ebp - 0x14]
push ecx
mov dword [ebp - 4], 0xffffffff
call fcn.0040e95d
mov eax, 0x8007000e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x3c], ebx
mov eax, edi
lea esi, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.00419a70
cmp eax, ebx
mov dword [ebp - 0x1c], eax
jge 0x41814d
mov byte [ebp - 4], 1
call fcn.00419b10
cmp edi, ebx
mov byte [ebp - 4], bl
je 0x418126
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], ebx
lea edx, [ebp - 0x14]
push edx
mov dword [ebp - 4], 0xffffffff
call fcn.0040e95d
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x44]
push eax
call fcn.00418af0
lea esi, [ebp - 0x44]
mov dword [ebp + 8], eax
mov byte [ebp - 4], 1
call fcn.00419b10
cmp edi, ebx
mov byte [ebp - 4], bl
je 0x41817c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], ebx
lea ecx, [ebp - 0x14]
push ecx
mov dword [ebp - 4], 0xffffffff
call fcn.0040e95d
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4