Function at 0x428520
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47f5e0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4ac084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], edx
mov edi, ecx
call fcn.00403450
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x428569
push 0x80004005
call fcn.004039a0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x42859f
push 0x104
lea ecx, [ebp - 0x14]
call fcn.00403880
mov esi, dword [ebp - 0x14]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push dword [esi - 8]
push esi
call fcn.0045ed24
add esp, 8
test eax, eax
js 0x4287fc
cmp eax, dword [esi - 8]
jg 0x4287fc
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
or ebx, 0xffffffff
mov eax, dword [esi - 0xc]
test eax, eax
je 0x428806
cmp eax, 0xe6
jg 0x428806
lea ecx, [eax - 1]
test ecx, ecx
js 0x4287fc
cmp ecx, eax
jg 0x4287fc
cmp word [esi + ecx*2], 0x5c
je 0x428611
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.004185b0
mov esi, dword [ebp - 0x14]
call fcn.00403450
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x42862d
push 0x80004005
call fcn.004039a0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
push edi
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00403ac0
lea edx, [ebp - 0x1c]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.00428460
mov byte [ebp - 4], 4
mov eax, ebx
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x428674
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x10]
cmp dword [eax - 4], 1
jle 0x42868b
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
call fcn.004037b0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripPathW]
mov eax, dword [ebp - 0x10]
push dword [eax - 8]
push eax
call fcn.0045ed24
mov edx, eax
add esp, 8
test edx, edx
js 0x4287fc
mov ecx, dword [ebp - 0x10]
cmp edx, dword [ecx - 8]
jg 0x4287fc
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0x10]
mov word [eax + edx*2], cx
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], ecx
jne 0x4286eb
push 3
push 0x493d9c
lea ecx, [ebp - 0x18]
call fcn.004039c0
push 8
push 0x48fbc0
lea ecx, [ebp - 0x10]
call fcn.004039c0
jmp 0x42874a
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
lea ecx, [ebp - 0x18]
call fcn.00403a70
mov eax, dword [ebp - 0x10]
cmp dword [eax - 4], 1
jle 0x428712
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
call fcn.004037b0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
mov eax, dword [ebp - 0x10]
push dword [eax - 8]
push eax
call fcn.0045ed24
mov edx, eax
add esp, 8
test edx, edx
js 0x4287fc
mov ecx, dword [ebp - 0x10]
cmp edx, dword [ecx - 8]
jg 0x4287fc
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0x10]
mov word [eax + edx*2], cx
mov edi, dword [ebp - 0x18]
xor ebx, ebx
nop
push edi
push ebx
push dword [ebp - 0x10]
push esi
push str._s_s_i_s
push dword [ebp - 0x20]
call fcn.004040a0
inc ebx
add esp, 0x18
cmp ebx, 0x3e8
jge 0x42877f
mov eax, dword [ebp - 0x20]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x428750
xor eax, eax
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x10]
cmp ebx, 0x3e8
setne al
or ebx, 0xffffffff
mov dword [ebp - 0x20], eax
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4287ae
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4287c9
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4287e8
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.004039a0
xor edi, edi
jmp 0x4287cc