Function at 0x42af60
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ca8f8
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x505034]
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 ebx, ecx
mov dword [ebp - 0x60], ebx
xor eax, eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov eax, 0x50bc30
mov dword [ebp - 0x14], 7
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42afb0
sub eax, edx
lea ecx, [ebp - 0x28]
sar eax, 1
push eax
push 0x50bc30
call fcn.00415170
mov dword [ebp - 4], 0
cmp dword [ebp - 0x18], 0
je 0x42b282
sub esp, 0x18
lea edx, [ebp - 0x28]
mov ecx, esp
mov dword [ebp - 0x5c], esp
call fcn.00465940
sub esp, 0x18
mov byte [ebp - 4], 1
mov ecx, esp
xor eax, eax
push 7
push str.SfxName
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
call fcn.00415170
mov ecx, ebx
mov byte [ebp - 4], 0
call fcn.0042ae80
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x4c]
cmovae edx, dword [ebp - 0x28]
call fcn.00466b90
mov si, word [ebp - 0x4c]
mov ax, word [ebp - 0x46]
mov cx, word [ebp - 0x48]
mov dx, word [ebp - 0x4a]
test si, si
jne 0x42b05c
test dx, dx
jne 0x42b05c
test cx, cx
jne 0x42b05c
test ax, ax
je 0x42b10d
xor edi, edi
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], di
movzx eax, ax
push eax
movzx eax, cx
push eax
movzx eax, dx
push eax
movzx eax, si
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push str._hu._hu._hu._hu
push eax
call fcn.0041fa80
lea eax, [ebp - 0x40]
mov dword [ebp - 0x5c], esp
mov ecx, esp
push eax
call fcn.00417d60
sub esp, 0x18
mov byte [ebp - 4], 3
mov ecx, esp
xor eax, eax
push 0xa
push str.SfxVersion
mov dword [ecx + 0x10], edi
mov dword [ecx + 0x14], 7
mov word [ecx], ax
call fcn.00415170
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.0042ae80
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x42b10d
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42b103
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42b2d4
push edx
push ecx
call fcn.00479e95
add esp, 8
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
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 - 0x44], esi
mov byte [ebp - 4], 4
cmp esi, 0xffffffff
je 0x42b282
push 0
push 0
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], 0
push eax
push esi
mov dword [ebp - 0x48], 0
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x42b21e
mov eax, dword [ebp - 0x4c]
mov edx, 0xe57a42bd
mul edx
mov ebx, 0xd6bf94d5
mov ecx, 0xe57a42bd
mov dword [ebp - 0x68], eax
mov edi, edx
mov eax, dword [ebp - 0x4c]
sub esp, 0x18
mul ebx
mov dword [ebp - 0x5c], esp
mov ebx, eax
mov dword [ebp - 0x6c], edx
mov eax, dword [ebp - 0x48]
mul ecx
mov dword [ebp - 0x74], esp
mov ecx, eax
mov dword [ebp - 0x7c], edx
mov eax, dword [ebp - 0x48]
mov edx, 0xd6bf94d5
mul edx
add ecx, edi
mov dword [ebp - 0x64], edx
mov edx, dword [ebp - 0x7c]
adc edx, 0
mov dword [ebp - 0x70], eax
add ebx, ecx
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x80], ebx
mov ebx, dword [ebp - 0x70]
adc ecx, 0
xor eax, eax
add edx, ecx
mov ecx, dword [ebp - 0x64]
adc eax, eax
add ebx, edx
adc ecx, eax
shrd ebx, ecx, 0x17
shr ecx, 0x17
sub ebx, 0xb6109100
sbb ecx, 2
push ecx
mov ecx, dword [ebp - 0x5c]
push ebx
call fcn.0042df50
sub esp, 0x10
mov byte [ebp - 4], 5
mov ecx, esp
xor eax, eax
push 0xa
push str.SfxCreated
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
call fcn.00415170
mov ebx, dword [ebp - 0x60]
mov ecx, ebx
mov byte [ebp - 4], 4
call fcn.0042ae80
lea eax, [ebp - 0x58]
xorps xmm0, xmm0
push eax
push esi
movlpd qword [ebp - 0x58], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x42b27b
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x74], esp
push dword [ebp - 0x54]
push dword [ebp - 0x58]
call fcn.0042df50
sub esp, 0x10
mov byte [ebp - 4], 6
mov ecx, esp
xor eax, eax
push 7
push str.SfxSize
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
call fcn.00415170
mov ecx, ebx
mov byte [ebp - 4], 4
call fcn.0042ae80
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x42b2b8
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42b2ae
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42b2d9
push edx
push ecx
call fcn.00479e95
add esp, 8
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.00479e61
mov esp, ebp
pop ebp
ret
call fcn.0049b19a
call fcn.0049b19a
int3