Function at 0x42e710
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d8a58
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x520078]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
cmp word [0x527de0], ax
jne 0x42e75e
xor edx, edx
jmp 0x42e775
mov edx, 0x527de0
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x42e766
sub edx, ecx
sar edx, 1
push edx
push 0x527de0
lea ecx, [ebp - 0x2c]
call fcn.00415880
mov dword [ebp - 4], 0
cmp dword [ebp - 0x1c], 0
je 0x42e976
sub esp, 0x18
lea edx, [ebp - 0x2c]
mov ecx, esp
mov dword [ebp - 0x5c], esp
call fcn.004778d0
sub esp, 0x18
mov byte [ebp - 4], 1
mov ecx, esp
push str.SfxName
call fcn.00415980
mov ecx, edi
mov byte [ebp - 4], 0
call fcn.0042e430
cmp dword [ebp - 0x18], 8
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x64]
cmovae edx, dword [ebp - 0x2c]
call fcn.00477e90
mov si, word [ebp - 0x64]
mov ax, word [ebp - 0x5e]
mov cx, word [ebp - 0x60]
mov dx, word [ebp - 0x62]
test si, si
jne 0x42e7fd
test dx, dx
jne 0x42e7fd
test cx, cx
jne 0x42e7fd
test ax, ax
je 0x42e892
xor ebx, ebx
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], bx
movzx eax, ax
push eax
movzx eax, cx
push eax
movzx eax, dx
push eax
movzx eax, si
push eax
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 2
push str._hu._hu._hu._hu
push eax
call fcn.00422d10
mov ecx, esp
mov dword [ebp - 0x14], esp
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], ebx
cmp dword [ecx + 0x14], 8
jb 0x42e84c
mov eax, dword [ecx]
jmp 0x42e84e
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp - 0x44]
push edx
push eax
call fcn.00415530
sub esp, 0x18
mov byte [ebp - 4], 3
mov ecx, esp
push str.SfxVersion
call fcn.00415980
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.0042e430
mov eax, dword [ebp - 0x30]
cmp eax, 8
jb 0x42e892
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.00415a10
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 0
cmovae eax, dword [ebp - 0x2c]
push 0
push 3
push 0
push 7
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 4
cmp esi, 0xffffffff
je 0x42e976
push 0
push 0
lea eax, [ebp - 0x4c]
xorps xmm0, xmm0
push eax
push esi
movq qword [ebp - 0x4c], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x42e927
push 0
push 0x989680
push dword [ebp - 0x48]
push dword [ebp - 0x4c]
call fcn.00494790
sub eax, 0xb6109100
sbb edx, 2
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x5c], esp
push edx
push eax
call fcn.00431750
sub esp, 0x10
mov byte [ebp - 4], 5
mov ecx, esp
push str.SfxCreated
call fcn.00415980
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.0042e430
lea eax, [ebp - 0x58]
xorps xmm0, xmm0
push eax
push esi
movq qword [ebp - 0x58], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x42e96f
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x60], esp
push dword [ebp - 0x54]
push dword [ebp - 0x58]
call fcn.00431750
sub esp, 0x10
mov byte [ebp - 4], 6
mov ecx, esp
push str.SfxSize
call fcn.00415980
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.0042e430
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x42e98b
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00415a10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00493bec
mov esp, ebp
pop ebp
ret