Function at 0x41a650
Capabilities:
Check if file exists
Create directory
Delete directory
Get file attributes

Disassembly:
sub esp, 0x1c8
mov eax, dword [0x4350b8]
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push esi
mov ebx, ecx
xor esi, esi
push edi
mov ecx, dword [ebx + 0x24]
push esi
push esi
push 0x1004
push ecx
mov dword [esp + 0x20], eax
call ebp
test eax, eax
jle 0x41a750
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x38]
mov dword [esp + 0x34], 0
rep stosd dword es:[edi], eax
mov ecx, dword [ebx + 0x24]
lea eax, [esp + 0x34]
push eax
push esi
lea edx, [esp + 0x8c]
push 0x102d
push ecx
mov dword [esp + 0x4c], 2
mov dword [esp + 0x5c], 0x14
mov dword [esp + 0x58], edx
call ebp
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x60]
mov dword [esp + 0x5c], 0
rep stosd dword es:[edi], eax
mov ecx, dword [ebx + 0x24]
lea eax, [esp + 0x5c]
push eax
push esi
lea edx, [esp + 0x28]
push 0x102d
push ecx
mov dword [esp + 0x74], 3
mov dword [esp + 0x84], 0x14
mov dword [esp + 0x80], edx
call ebp
lea edx, [esp + 0x20]
push edx
call fcn.00426ec2
mov edi, eax
lea eax, [esp + 0x88]
push eax
call fcn.00426ec2
add esp, 8
cmp eax, edi
jg 0x41a738
lea ecx, [esp + 0x20]
push ecx
call fcn.00426ec2
add esp, 4
test eax, eax
jg 0x41a75f
mov edx, dword [ebx + 0x24]
push 0
push 0
push 0x1004
push edx
inc esi
call ebp
cmp esi, eax
jl 0x41a682
mov esi, dword [esp + 0x1dc]
test esi, esi
jne 0x41a7a0
xor eax, eax
jmp 0x41a7a7
mov eax, dword [esp + 0x10]
mov edx, dword [0x4350bc]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x41a78e
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41a78e
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00426ac0
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 0x6c
pop ebx
add esp, 0x1c8
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push eax
lea ecx, [esp + 0x18]
call fcn.00401f40
push 0
push 0x435a8c
lea ecx, [esp + 0x18]
call fcn.00409560
cmp eax, 0xffffffff
jne 0x41ac31
push 0
push 0x436070
lea ecx, [esp + 0x18]
call fcn.00409560
cmp eax, 0xffffffff
jne 0x41ac31
push 0
push 0x43606c
lea ecx, [esp + 0x18]
call fcn.00409560
cmp eax, 0xffffffff
jne 0x41ac31
push 0
push 0x4358b4
lea ecx, [esp + 0x18]
call fcn.00409560
cmp eax, 0xffffffff
jne 0x41ac31
push 0
push 0x436068
lea ecx, [esp + 0x18]
call fcn.00409560
cmp eax, 0xffffffff
jne 0x41ac31
push 0
push 0x436064
lea ecx, [esp + 0x18]
call fcn.00409560
cmp eax, 0xffffffff
jne 0x41ac31
push 0
push str.___
lea ecx, [esp + 0x18]
call fcn.00409560
cmp eax, 0xffffffff
jne 0x41ac31
mov ecx, dword [esp + 0x10]
cmp byte [ecx + 1], 0x3a
jne 0x41ac0c
cmp byte [ecx + 2], 0x5c
jne 0x41ac0c
mov ecx, dword [ecx - 8]
mov eax, 3
xor ebp, ebp
cmp ecx, eax
jge 0x41a889
mov eax, ecx
mov ecx, dword [0x4350b8]
push 0
push 0
lea edx, [esp + 0x20]
mov dword [esp + 0x20], ecx
push eax
push edx
lea ecx, [esp + 0x20]
call fcn.004115c0
lea eax, [esp + 0x18]
lea ecx, [esp + 0x14]
push eax
call fcn.00401cf0
lea ecx, [esp + 0x18]
call fcn.00401f10
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edx, dword [eax - 8]
mov esi, dword [ecx - 8]
cmp edx, esi
jge 0x41aa60
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push eax
call ebx
cmp eax, 0xffffffff
je 0x41a8f8
and eax, 0x10
test al, al
je 0x41aac1
mov eax, dword [esp + 0x14]
push 0
push eax
call edi
mov ecx, dword [esp + 0x14]
add ebp, eax
mov eax, dword [ecx - 8]
mov ecx, dword [esp + 0x10]
cmp eax, dword [ecx - 8]
jg 0x41aa02
add ecx, eax
push 0x4351b8
push ecx
call fcn.00427aec
mov ecx, dword [esp + 0x18]
add esp, 8
test eax, eax
je 0x41aa02
sub eax, ecx
test eax, eax
jle 0x41aa02
inc eax
test eax, eax
jge 0x41a946
xor eax, eax
jmp 0x41a94f
mov ecx, dword [ecx - 8]
cmp eax, ecx
jle 0x41a94f
mov eax, ecx
mov edx, dword [0x4350b8]
push 0
push 0
push eax
lea eax, [esp + 0x28]
lea ecx, [esp + 0x1c]
push eax
mov dword [esp + 0x2c], edx
call fcn.004115c0
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00401cf0
lea ecx, [esp + 0x1c]
call fcn.00401f10
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
cmp ecx, eax
je 0x41a9d5
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x41a9a3
mov edx, dword [0x4350bc]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x41a9aa
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x41a9ba
mov edx, dword [eax - 8]
push eax
push edx
lea ecx, [esp + 0x1c]
call fcn.00401f40
jmp 0x41a9d1
lea ecx, [esp + 0x14]
call fcn.00401e30
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], eax
add eax, 0xfffffff4
push eax
call esi
mov eax, dword [esp + 0x18]
mov edx, dword [0x4350bc]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x41aa4c
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41aa4c
mov edx, dword [esp + 0x18]
add edx, 0xfffffff4
push edx
call fcn.00426ac0
add esp, 4
jmp 0x41aa4c
mov eax, dword [esp + 0x14]
cmp eax, ecx
je 0x41aa50
mov edx, dword [eax - 0xc]
test edx, edx
jge 0x41aa1e
mov edx, dword [0x4350bc]
add eax, 0xfffffff4
cmp eax, edx
jne 0x41aa25
mov eax, dword [ecx - 0xc]
test eax, eax
jge 0x41aa35
mov eax, dword [ecx - 8]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00401f40
jmp 0x41aa4c
lea ecx, [esp + 0x14]
call fcn.00401e30
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], eax
add eax, 0xfffffff4
push eax
call esi
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov edx, dword [eax - 8]
cmp edx, dword [ecx - 8]
jl 0x41a8e5
push ecx
call ebx
cmp eax, 0xffffffff
je 0x41ab24
and eax, 0x10
test al, al
jne 0x41ab24
mov eax, dword [esp + 0x14]
mov edx, dword [0x4350bc]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x41aaa6
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41aaa6
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.00426ac0
add esp, 4
lea ecx, [esp + 0x10]
call fcn.00401f10
pop edi
pop esi
pop ebp
mov eax, 0x82
pop ebx
add esp, 0x1c8
ret 4
mov eax, dword [esp + 0x14]
mov edx, dword [0x4350bc]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x41aaf0
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41aaf0
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.00426ac0
add esp, 4
mov eax, dword [esp + 0x10]
mov edx, dword [0x4350bc]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x41ac60
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41ac60
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
jmp 0x41ac58
mov eax, dword [esp + 0x10]
push 0
push eax
call edi
mov edx, dword [esp + 0x10]
add ebp, eax
mov ecx, 0x4f
xor eax, eax
lea edi, [esp + 0x9c]
mov dword [esp + 0x98], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x98]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x41ab6b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor ebx, ebx
cmp esi, 0xffffffff
sete bl
test ebp, ebp
je 0x41abc7
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov edi, ebp
mov eax, dword [esp + 0x14]
push eax
call esi
mov ecx, dword [esp + 0x14]
push 0x5c
push ecx
call fcn.00426c50
add esp, 8
test eax, eax
jne 0x41ab9e
or eax, 0xffffffff
jmp 0x41aba2
sub eax, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push eax
push edx
lea ecx, [esp + 0x1c]
call fcn.0041af10
push eax
lea ecx, [esp + 0x18]
call fcn.00404560
lea ecx, [esp + 0x1c]
call fcn.00401f10
dec edi
jne 0x41ab7f
test ebx, ebx
lea ecx, [esp + 0x14]
je 0x41abef
call fcn.00401f10
lea ecx, [esp + 0x10]
call fcn.00401f10
pop edi
pop esi
pop ebp
mov eax, 0x82
pop ebx
add esp, 0x1c8
ret 4
call fcn.00401f10
lea ecx, [esp + 0x10]
call fcn.00401f10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c8
ret 4
mov edx, dword [0x4350bc]
lea eax, [ecx - 0xc]
cmp eax, edx
je 0x41ac60
add ecx, 0xfffffff4
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41ac60
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff4
push ecx
jmp 0x41ac58
mov eax, dword [esp + 0x10]
mov ecx, dword [0x4350bc]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x41ac60
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41ac60
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.00426ac0
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 0x82
pop ebx
add esp, 0x1c8
ret 4