Function at 0x42c670
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d18c8
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x517074]
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 [0x51e708], ax
jne 0x42c6be
xor edx, edx
jmp 0x42c6d5
mov edx, 0x51e708
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x42c6c6
sub edx, ecx
sar edx, 1
push edx
push 0x51e708
lea ecx, [ebp - 0x2c]
call fcn.00413f90
mov dword [ebp - 4], 0
cmp dword [ebp - 0x1c], 0
je 0x42c8d6
sub esp, 0x18
lea edx, [ebp - 0x2c]
mov ecx, esp
mov dword [ebp - 0x5c], esp
call fcn.004713b0
sub esp, 0x18
mov byte [ebp - 4], 1
mov ecx, esp
push str.SfxName
call fcn.00414090
mov ecx, edi
mov byte [ebp - 4], 0
call fcn.0042c390
cmp dword [ebp - 0x18], 8
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x64]
cmovae edx, dword [ebp - 0x2c]
call fcn.004718c0
mov si, word [ebp - 0x64]
mov ax, word [ebp - 0x5e]
mov cx, word [ebp - 0x60]
mov dx, word [ebp - 0x62]
test si, si
jne 0x42c75d
test dx, dx
jne 0x42c75d
test cx, cx
jne 0x42c75d
test ax, ax
je 0x42c7f2
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.0041f730
mov ecx, esp
mov dword [ebp - 0x14], esp
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], ebx
cmp dword [ecx + 0x14], 8
jb 0x42c7ac
mov eax, dword [ecx]
jmp 0x42c7ae
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp - 0x44]
push edx
push eax
call fcn.00413c40
sub esp, 0x18
mov byte [ebp - 4], 3
mov ecx, esp
push str.SfxVersion
call fcn.00414090
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.0042c390
mov eax, dword [ebp - 0x30]
cmp eax, 8
jb 0x42c7f2
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.00414120
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 0x42c8d6
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 0x42c887
push 0
push 0x989680
push dword [ebp - 0x48]
push dword [ebp - 0x4c]
call fcn.0048c780
sub eax, 0xb6109100
sbb edx, 2
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x5c], esp
push edx
push eax
call fcn.0042f490
sub esp, 0x10
mov byte [ebp - 4], 5
mov ecx, esp
push str.SfxCreated
call fcn.00414090
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.0042c390
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 0x42c8cf
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x60], esp
push dword [ebp - 0x54]
push dword [ebp - 0x58]
call fcn.0042f490
sub esp, 0x10
mov byte [ebp - 4], 6
mov ecx, esp
push str.SfxSize
call fcn.00414090
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.0042c390
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x42c8eb
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00414120
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.0048bc9e
mov esp, ebp
pop ebp
ret