Function at 0x428d10
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x493758
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x4bea30]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, ecx
test esi, esi
jne 0x428d57
xor eax, eax
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
lea ecx, [esp + 0x18]
call fcn.00404740
mov dword [esp + 0x40], 0
mov eax, dword [esp + 0x14]
mov ebx, 1
cmp dword [eax - 4], ebx
jle 0x428d88
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x18]
call fcn.00404510
mov eax, dword [esp + 0x14]
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push eax
call edi
mov ecx, dword [esp + 0x14]
call fcn.00429090
test eax, eax
jne 0x428dc4
mov eax, dword [esp + 0x14]
cmp dword [eax - 4], ebx
jle 0x428db8
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [esp + 0x18]
call fcn.00404510
mov eax, dword [esp + 0x14]
push eax
call edi
mov ecx, dword [esp + 0x14]
call fcn.00429090
cmp dword [0x4c36e0], 0
je 0x428eb3
call fcn.0045525d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x428deb
push 0x80004005
call fcn.004022b0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x40], 1
call fcn.0045ed7b
mov eax, dword [eax + 4]
mov edi, dword [eax + 0x48]
lea ecx, [esp + 0x2c]
push ecx
call fcn.00422880
lea edx, [esp + 0x20]
push edx
push str.SKUIF
lea eax, [esp + 0x34]
mov byte [esp + 0x48], 2
call fcn.004229a0
test eax, eax
je 0x428e61
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x428e61
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x428e61
mov ecx, dword [0x4c36e0]
push ebx
lea edx, [esp + 0x24]
push edx
push eax
call fcn.00461d55
mov byte [esp + 0x40], 1
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov dword [esp + 0x2c], vtable.CCmdlineParser.0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x428e8e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x40], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x428eb3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.0045525d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x428ecd
push 0x80004005
call fcn.004022b0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push esi
lea ecx, [esp + 0x20]
mov byte [esp + 0x44], 3
call fcn.00404740
mov byte [esp + 0x40], 4
call fcn.00430420
mov edi, dword [esp + 0x1c]
cmp dword [edi - 4], 1
mov ebx, eax
mov dword [esp + 0x28], ebx
jle 0x428f17
mov ecx, dword [edi - 0xc]
push ecx
lea ecx, [esp + 0x20]
call fcn.00404510
mov edi, dword [esp + 0x1c]
call fcn.00430330
mov esi, eax
call fcn.00430420
mov edi, eax
lea edx, [esp + 0x18]
push edx
mov esi, edi
call fcn.00429290
mov esi, eax
add esp, 4
test esi, esi
jne 0x428f55
lea eax, [esp + 0x18]
push eax
mov esi, ebx
call fcn.00429290
mov esi, eax
add esp, 4
test esi, esi
je 0x428ff5
mov edi, ebx
mov ecx, dword [esp + 0x18]
push 0x4a7150
push ecx
call fcn.0047a268
add esp, 8
test eax, eax
jne 0x428f72
xor esi, esi
jmp 0x428ffa
mov edx, dword [esp + 0x18]
push 0x4a7154
push edx
call fcn.0047a268
add esp, 8
test eax, eax
je 0x428ffa
mov eax, dword [esp + 0x18]
xor esi, esi
call fcn.0042df10
cmp edi, ebx
mov ecx, eax
mov dword [esp + 0x24], ecx
jne 0x428fa5
xor eax, eax
cmp eax, ecx
sbb esi, esi
neg esi
xor eax, eax
test esi, esi
jne 0x428ffa
jmp 0x428fb4
mov ecx, dword [esp + 0x24]
cmp ecx, eax
jbe 0x428ffa
mov ecx, dword [esp + 0x18]
lea ebx, [eax + 1]
push ecx
lea edi, [esp + 0x20]
mov eax, ebx
call fcn.00430810
add esp, 4
test eax, eax
je 0x428fed
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
push edx
push eax
call fcn.0047a268
add esp, 8
mov esi, eax
neg esi
sbb esi, esi
add esi, 1
test esi, esi
mov eax, ebx
je 0x428fb0
jmp 0x428ffa
mov esi, 1
mov byte [esp + 0x40], 3
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42901f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x40], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x429044
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x40], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42906c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret