Function at 0x402690
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x473698
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
lea ecx, [ebp - 0x10]
call fcn.004016a0
push 0x479cd0
push 0x47e5ac
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.00408880
push 0x479cd0
push str..rar
lea ecx, [ebp - 0x10]
call fcn.00408880
call fcn.00429930
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x402701
push 0x80004005
call fcn.00402670
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 1
call fcn.00429930
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x40272e
push 0x80004005
call fcn.00402670
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push 1
push 0x47da80
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00466df0
push 0
push dword [ebp - 0x14]
call fcn.004651e0
mov edx, eax
add esp, 0x1c
test edx, edx
jne 0x40276d
xor ecx, ecx
jmp 0x402781
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402772
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x10]
call fcn.00408f60
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push ebx
lea eax, [ebp - 0x2c]
push 2
push eax
call fcn.004675d0
movzx esi, word [ebp - 0x2c]
movzx ecx, word [ebp - 0x2a]
imul esi, esi, 0x16d
movzx edx, word [ebp - 0x3c]
mov eax, ecx
imul edx, edx, 0x16d
shl eax, 5
sub eax, ecx
movzx ecx, word [ebp - 0x3a]
add esi, eax
movzx eax, word [ebp - 0x26]
add esi, eax
mov eax, ecx
shl eax, 5
sub eax, ecx
add edx, eax
movzx eax, word [ebp - 0x36]
add edx, eax
xor edi, edi
add esp, 0xc
mov eax, 1
cmp edx, esi
cmove edi, eax
mov eax, dword [0x4a40cc]
test eax, eax
je 0x4027f7
test edi, edi
je 0x402807
push dword [ebp - 0x10]
call fcn.00404280
mov eax, dword [0x4a40cc]
add esp, 4
mov esi, 1
test eax, eax
je 0x402949
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402949
push 4
call fcn.00429324
add esp, 4
test eax, eax
je 0x40283a
lea ecx, [ebp - 0x6c]
mov dword [eax], ecx
jmp 0x40283c
xor eax, eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
push 4
mov byte [ebp - 4], 4
call fcn.00429324
add esp, 4
test eax, eax
je 0x40286d
lea ecx, [ebp - 0x54]
mov dword [eax], ecx
jmp 0x40286f
xor eax, eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
push 0
push 1
push 1
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x10]
mov byte [ebp - 4], 6
call fcn.004667f0
mov edx, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x48]
mov eax, edx
sub eax, ecx
sar eax, 2
add esp, 0x18
mov dword [ebp - 0x1c], 0
test eax, eax
cmovne esi, dword [ebp - 0x1c]
mov byte [ebp - 4], 7
test ecx, ecx
je 0x4028db
push edx
push ecx
lea ecx, [ebp - 0x54]
call fcn.0040a800
push dword [ebp - 0x48]
call fcn.00429353
add esp, 4
push dword [ebp - 0x54]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
call fcn.00429353
add esp, 4
mov eax, dword [ebp - 0x60]
mov byte [ebp - 4], 8
test eax, eax
je 0x40291d
push dword [ebp - 0x5c]
lea ecx, [ebp - 0x6c]
push eax
call fcn.0040a800
push dword [ebp - 0x60]
call fcn.00429353
add esp, 4
push dword [ebp - 0x6c]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov byte [ebp - 4], 2
call fcn.00429353
add esp, 4
test esi, esi
jne 0x402949
test edi, edi
je 0x402962
push 0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 1
push dword [ebp - 0x10]
push ebx
call fcn.00410050
add esp, 0xc
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
or esi, 0xffffffff
mov byte [ebp - 4], 1
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x402985
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4029a5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x4029c6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret