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

Disassembly:
push 0xffffffffffffffff
push 0x44f548
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push ebp
push esi
push edi
mov eax, dword [0x469720]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
lea eax, [esp + 0x34]
call fcn.0040b270
mov edi, eax
xor ebp, ebp
lea esi, [esp + 0x24]
mov dword [esp + 0x74], ebp
call fcn.00401a10
push 0x457ad4
push eax
lea eax, [esp + 0x28]
push eax
mov byte [esp + 0x80], 1
call fcn.004056a0
add esp, 0xc
mov esi, 8
mov byte [esp + 0x74], 2
cmp dword [edi + 0x18], esi
jb 0x40a8e0
mov edi, dword [edi + 4]
jmp 0x40a8e3
add edi, 4
push edi
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.004056a0
add esp, 0xc
mov byte [esp + 0x74], 4
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40a917
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x74], 5
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 0x40a93c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x74], 6
cmp dword [esp + 0x4c], esi
jb 0x40a954
mov ecx, dword [esp + 0x38]
push ecx
call fcn.0041218b
add esp, 4
mov edx, dword [esp + 0x1c]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebx, 7
push edx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x4c], ebp
mov word [esp + 0x3c], bp
call edi
test eax, eax
jne 0x40a983
mov eax, dword [esp + 0x1c]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [esp + 0x50]
call fcn.0040b2a0
mov esi, eax
push 0x457ad4
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x30]
push edx
mov byte [esp + 0x80], bl
call fcn.004056a0
add esp, 0xc
mov byte [esp + 0x74], 8
cmp dword [esi + 0x18], 8
jb 0x40a9bc
mov esi, dword [esi + 4]
jmp 0x40a9bf
add esi, 4
push esi
push eax
lea eax, [esp + 0x20]
push eax
call fcn.004056a0
add esp, 0xc
mov byte [esp + 0x74], 0xa
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 0x40a9f3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x74], 0xb
cmp dword [esp + 0x68], 8
jb 0x40aa0c
mov ecx, dword [esp + 0x54]
push ecx
call fcn.0041218b
add esp, 4
mov edx, dword [esp + 0x18]
push edx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x68], ebp
mov word [esp + 0x58], bp
call edi
test eax, eax
jne 0x40aa30
mov eax, dword [esp + 0x18]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x457ad4
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x38]
push edx
call fcn.004056a0
add esp, 0xc
push str.archive.7z
push eax
lea eax, [esp + 0x34]
mov bl, 0xc
push eax
mov byte [esp + 0x80], bl
call fcn.004056a0
add esp, 0xc
mov esi, dword [esp + 0x7c]
add esi, 0xb0
push eax
mov ecx, esi
mov byte [esp + 0x78], 0xd
call fcn.00401910
mov byte [esp + 0x74], bl
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
or ebx, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40aaa0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x74], 0xb
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40aac4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi]
push 0x90
push ecx
sub eax, 0x10
mov dword [esp + 0x84], esp
mov edi, esp
push eax
call fcn.004011e0
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.0040ab90
mov byte [esp + 0x74], 6
test al, al
mov eax, dword [esp + 0x18]
mov edx, ebx
jne 0x40ab38
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ab13
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x74], ebx
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x40ab34
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x40ab77
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ab51
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x74], ebx
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x40ab72
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 4