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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5b3973
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x62c930]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
push esi
mov eax, dword [0x62c930]
xor eax, esp
push eax
lea eax, [esp + 0x240]
mov dword fs:[0], eax
mov ecx, dword [edi + 0x68]
sub ecx, dword [edi + 0x64]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
mov byte [esp + 0x13], 0
mov dword [esp + 0x14], ebx
call fcn.005759db
xor ecx, ecx
xor esi, esi
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x4050db
push 0x80004005
call fcn.00401b20
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
cmp ebx, esi
mov dword [esp + 0x248], esi
jle 0x40516d
xor ebx, ebx
jmp 0x405100
mov ecx, dword [edi + 0x68]
sub ecx, dword [edi + 0x64]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp esi, ecx
jb 0x405120
call fcn.0058465c
mov ecx, dword [edi + 0x64]
lea eax, [edi + 0x48]
add ecx, ebx
push eax
call fcn.00401a80
mov ecx, dword [edi + 0x68]
sub ecx, dword [edi + 0x64]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x40514e
call fcn.0058465c
mov ecx, dword [edi + 0x64]
add ecx, ebx
call fcn.00405670
or byte [esp + 0x13], al
inc esi
add ebx, 0x18
cmp esi, dword [esp + 0x14]
jl 0x405100
cmp byte [esp + 0x13], 0
jne 0x40519f
mov dword [esp + 0x248], 0xffffffff
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 0x405198
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x40563b
cmp dword [edi + 0x40], 0
je 0x40560e
mov ecx, dword [0x635790]
push 0
push ecx
call fcn.00584007
add esp, 8
test eax, eax
jne 0x40560e
call fcn.005759db
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4051dc
push 0x80004005
call fcn.00401b20
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x36]
mov byte [esp + 0x250], 1
push edx
mov word [esp + 0x38], cx
call fcn.00587fb0
add esp, 0xc
lea esi, [esp + 0x14]
call fcn.0041e9b0
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x24c], 2
call fcn.00401a80
mov byte [esp + 0x248], 1
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 0x405251
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.005759db
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40526b
push 0x80004005
call fcn.00401b20
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x248], 3
call fcn.005759db
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40529d
push 0x80004005
call fcn.00401b20
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x248], 4
call fcn.005759db
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4052cf
push 0x80004005
call fcn.00401b20
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x2c]
push ecx
push 0x103
mov byte [esp + 0x250], 5
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0
call fcn.00583f2d
add esp, 4
push eax
call fcn.00583ef9
add esp, 4
call fcn.00583f0b
push eax
call fcn.00583f0b
push eax
call fcn.00583f0b
push eax
call fcn.00583f0b
push eax
lea edx, [esp + 0x24]
push 0x602798
push edx
call fcn.00407c30
mov eax, dword [edi + 0x3c]
lea esi, [edi + 0x3c]
add esp, 0x18
cmp dword [eax - 0xc], 0
jne 0x40534c
push 0x602494
mov ecx, esi
call fcn.00401680
push esi
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.00405bb0
add esp, 0xc
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x24c], 6
call fcn.00401a80
mov byte [esp + 0x248], 5
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 0x405399
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x1c]
mov eax, dword [ebx - 0xc]
test eax, eax
je 0x4053ed
lea ecx, [eax - 1]
test ecx, ecx
jl 0x40565e
cmp ecx, eax
jg 0x40565e
movzx ecx, word [ebx + ecx*2]
cmp cx, 0x5c
je 0x4053ed
lea ecx, [eax - 1]
test ecx, ecx
jl 0x40565e
cmp ecx, eax
jg 0x40565e
movzx eax, word [ebx + ecx*2]
cmp ax, 0x2f
je 0x4053ed
push 0x5c
lea ecx, [esp + 0x20]
call fcn.00408400
mov ebx, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.00405bb0
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x24c], 7
call fcn.00401a80
mov byte [esp + 0x248], 5
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 0x40543e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, 0x63578c
call fcn.00401a80
mov edx, dword [esp + 0x14]
push 0x6027d8
push edx
call fcn.00583665
mov esi, eax
add esp, 8
test esi, esi
je 0x40555c
push 0x6027dc
push 0
call fcn.005841e2
push 0x6027e4
push esi
call fcn.005843de
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.taskkill__pid__d__t__f_n
push esi
call fcn.005843de
mov eax, dword [esp + 0x24]
mov ecx, dword [0x635790]
add esp, 0xc
push eax
push ecx
push str.move__y___s.____s___n
push esi
call fcn.005843de
mov edx, dword [0x635790]
push edx
push str.rd___s___q_n
push esi
call fcn.005843de
mov eax, dword [edi + 0x34]
lea ebx, [edi + 0x34]
add esp, 0x1c
cmp dword [eax - 0xc], 0
je 0x40553a
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40553a
lea eax, [edi + 0x38]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.00405bb0
add esp, 0xc
push eax
mov ecx, ebx
mov byte [esp + 0x24c], 8
call fcn.00401a80
mov byte [esp + 0x248], 5
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 0x405529
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebx]
push ecx
push str.start______s__n
push esi
call fcn.005843de
add esp, 0xc
mov edx, dword [0x63578c]
push edx
push str.del__q___s__n
push esi
call fcn.005843de
add esp, 0xc
push esi
call fcn.0058392a
mov ebx, dword [esp + 0x20]
add esp, 4
mov eax, dword [edi + 0x40]
push 0x63578c
push 0
push 0x858
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov byte [esp + 0x248], 4
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40559a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [esp + 0x248], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4055be
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x248], 1
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 0x4055e6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x248], 0
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40560e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x248], 0xffffffff
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 0x405639
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0x240]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.005832f8
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00401b20
int3