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

Disassembly:
push 0xffffffffffffffff
push 0x4364c2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x228
mov eax, dword [0x4481e0]
push ebx
push ebp
mov dword [esp + 0x22c], eax
mov eax, dword [esp + 0x240]
sub eax, 3
push esi
mov esi, ecx
push edi
mov dword [esp + 0x20], esi
je 0x407260
dec eax
je 0x407250
sub eax, 2
jne 0x407167
lea ecx, [esi + 0x288]
call fcn.00409730
mov eax, dword [0x44914c]
mov ecx, dword [eax + 0x14]
mov edx, dword [ecx + 4]
mov ecx, dword [edx - 0xc]
test ecx, ecx
jne 0x406ef8
push 0x30
push 0x4394d4
push 0x439588
mov ecx, esi
call fcn.0042a97f
xor eax, eax
jmp 0x40716c
push 1
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [eax + 0x14]
add ecx, 4
call fcn.00402320
mov eax, dword [eax]
push 0x438b4c
push eax
call fcn.0041b9dd
add esp, 8
test eax, eax
mov eax, dword [esp + 0x24]
setne bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406f3d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
je 0x406f56
mov eax, dword [0x44914c]
mov ecx, dword [eax + 0x14]
push 0x438b4c
add ecx, 4
call fcn.004029d0
mov ecx, dword [0x44914c]
mov eax, dword [ecx + 0x14]
mov edx, dword [eax + 4]
mov ecx, dword [edx - 0xc]
add eax, 4
cmp ecx, 4
jge 0x406f87
push 0x10
push 0x4394d4
push 0x439568
mov ecx, esi
call fcn.0042a97f
xor eax, eax
jmp 0x40716c
push eax
lea ecx, [esp + 0x18]
call fcn.00402140
mov ebp, dword [esp + 0x14]
cmp dword [ebp - 0xc], 0x104
mov dword [esp + 0x240], 0
jl 0x406fcc
push 0x10
push 0x4394d4
push 0x43954c
mov ecx, esi
call fcn.0042a97f
lea ecx, [esp + 0x14]
call fcn.00401060
xor eax, eax
jmp 0x40716c
mov eax, dword [str.Everyone]
mov ecx, dword [0x439544]
mov dl, byte [0x439548]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
mov byte [esp + 0x34], dl
xor eax, eax
mov ecx, 0x3e
lea edi, [esp + 0x35]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebp
stosb byte es:[edi], al
call ebx
test eax, eax
jne 0x407120
mov esi, 1
nop
call fcn.00428fe3
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
test esi, esi
mov eax, dword [ebp - 0xc]
mov byte [esp + 0x240], 1
jl 0x407193
cmp esi, eax
jge 0x407193
lea eax, [esi + ebp]
push 0x5c
push eax
call fcn.0041bd38
add esp, 8
test eax, eax
je 0x407193
sub eax, ebp
cmp eax, 0xffffffff
je 0x407193
lea esi, [eax + 1]
push esi
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x1c]
call fcn.004046d0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x244], 2
call fcn.00402780
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x240], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4070a9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov edi, dword [esp + 0x10]
push edi
lea eax, [esp + 0x134]
push 0x438e34
push eax
call fcn.0041bc2e
add esp, 0xc
push 0x10000000
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x138]
push edx
mov ecx, 0x449148
call fcn.00408ba0
push edi
call ebx
test eax, eax
jne 0x4070f6
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4071a9
lea eax, [edi - 0x10]
mov byte [esp + 0x240], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407118
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test esi, esi
jne 0x407010
mov edx, dword [0x44914c]
mov eax, dword [edx + 0x14]
mov ecx, dword [eax + 4]
push ecx
lea edx, [esp + 0x134]
push 0x438e34
push edx
call fcn.0041bc2e
add esp, 0xc
push 0x10000000
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x138]
push ecx
mov ecx, 0x449148
call fcn.00408ba0
lea ecx, [esp + 0x14]
call fcn.00401060
mov eax, 1
mov ecx, dword [esp + 0x238]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x228]
pop ebx
call fcn.0041b28e
add esp, 0x234
ret 4
lea ecx, [esp + 0x10]
mov byte [esp + 0x240], 0
call fcn.00401060
jmp 0x407120
lea ecx, [esp + 0x10]
call fcn.00401060
lea ecx, [esp + 0x10]
call fcn.00401040
mov eax, dword [0x44914c]
mov ecx, dword [eax + 0x14]
add ecx, 4
push ecx
push 0x439534
lea edx, [esp + 0x24]
push edx
mov byte [esp + 0x24c], 3
call fcn.00405700
push 0x439528
push eax
lea eax, [esp + 0x20]
push eax
mov byte [esp + 0x24c], 4
call fcn.004047c0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x244], 5
call fcn.00402780
lea ecx, [esp + 0x18]
call fcn.00401060
lea ecx, [esp + 0x1c]
mov byte [esp + 0x240], 3
call fcn.00401060
mov ecx, dword [esp + 0x10]
push 0x10
push 0x4394d4
push ecx
mov ecx, dword [esp + 0x2c]
call fcn.0042a97f
lea ecx, [esp + 0x10]
call fcn.00401060
lea ecx, [esp + 0x14]
call fcn.00401060
xor eax, eax
jmp 0x40716c
lea ecx, [esi + 0x218]
call fcn.00401720
jmp 0x407167
lea ecx, [esi + 0x154]
call fcn.00409e80
test eax, eax
jne 0x407167
push 0x30
push 0x4394d4
push 0x439514
mov ecx, esi
call fcn.0042a97f
xor eax, eax
jmp 0x40716c