Function at 0x40b5c0
Capabilities:
Check if file exists
Create directory
Delete file
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x421a60
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x428040]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push esi
push edi
mov eax, dword [0x428040]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x94]
mov eax, dword [eax - 0xc]
test eax, eax
lea edi, [esi + 0x94]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x34], edi
je 0x40b7a6
mov eax, dword [esi + 0x98]
cmp dword [eax - 0xc], 0
je 0x40b7a6
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40b64a
mov esi, dword [esi + 0x98]
push eax
push esi
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
jne 0x40b7a6
mov edx, dword [0x42a3c0]
mov eax, dword [edx + 0xc]
mov ecx, 0x42a3c0
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x70], 0
mov edx, dword [0x42a3c0]
mov eax, dword [edx + 0xc]
mov ecx, 0x42a3c0
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
mov byte [esp + 0x70], 1
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x40b6ab
mov ecx, 0x104
lea eax, [esp + 0x18]
call fcn.00403870
mov esi, dword [esp + 0x18]
mov eax, dword [ebx - 8]
mov ecx, 1
sub ecx, dword [ebx - 4]
sub eax, 0x104
or eax, ecx
jge 0x40b6d1
mov ecx, 0x104
lea eax, [esp + 0x14]
call fcn.00403870
mov ebx, dword [esp + 0x14]
mov eax, dword [edi]
push 0x104
push esi
push 0x104
push ebx
push 0
push 0
push 0
push 0
push eax
call fcn.0040e223
add esp, 0x24
lea edi, [esp + 0x14]
call fcn.00404bb0
lea edi, [esp + 0x18]
call fcn.00404bb0
mov ecx, 6
mov esi, str._:____
lea edi, [esp + 0x44]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ax, word [esp + 0x44]
xor esi, esi
test ax, ax
je 0x40b757
movzx eax, ax
movzx eax, ax
push eax
push ebx
call fcn.0040e436
add esp, 8
test eax, eax
je 0x40b74a
sub eax, ebx
sar eax, 1
js 0x40b74a
add eax, 1
lea ebx, [esp + 0x14]
call fcn.0040c540
mov ebx, dword [esp + 0x14]
movzx eax, word [esp + esi*2 + 0x46]
add esi, 1
test ax, ax
jne 0x40b723
cmp dword [ebx - 0xc], 0
jne 0x40b7c6
mov byte [esp + 0x70], 0
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 0x40b782
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x70], 0xffffffff
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b7a6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0040d942
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx + 0x98]
sub eax, 0x10
call fcn.00402780
add eax, 0x10
mov dword [esp + 0x10], eax
mov byte [esp + 0x70], 2
mov eax, dword [ebx - 0xc]
push eax
push ebx
lea edx, [esp + 0x18]
push edx
call fcn.00402a60
mov esi, dword [esp + 0x18]
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40b800
sub eax, edx
sar eax, 1
je 0x40b820
mov eax, dword [esi - 0xc]
push eax
push esi
lea eax, [esp + 0x18]
push eax
call fcn.00402a60
push 3
push 0x424444
lea ecx, [esp + 0x18]
push ecx
call fcn.00402a60
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x20]
push eax
mov ebx, str..cfg
call fcn.004057f0
mov byte [esp + 0x78], 3
mov esi, dword [esp + 0x18]
add esp, 4
add esi, 0xfffffff0
mov eax, esi
mov dword [esp + 0x2c], esp
mov edi, esp
call fcn.00402780
mov ecx, dword [esp + 0x30]
add eax, 0x10
push ecx
mov dword [edi], eax
call fcn.0040be20
mov edx, dword [0x42a3c0]
mov byte [esp + 0x27], al
mov eax, dword [edx + 0xc]
mov ecx, 0x42a3c0
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x70], 4
mov dword [esp + 0x30], 0
mov edi, 3
mov dword [esp + 0x38], 0x6978
mov dword [esp + 0x3c], 0x2328
mov dword [esp + 0x40], 0xbb8
mov ebx, dword [esp + 0x34]
mov eax, dword [ebx]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x34]
push edx
push eax
call fcn.004041b0
add esp, 0xc
test al, al
je 0x40b8d9
cmp dword [esp + 0x30], 0
ja 0x40b8eb
sub edi, 1
js 0x40b8f3
mov eax, dword [esp + edi*4 + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40b8b5
test edi, edi
jge 0x40b994
mov byte [esp + 0x70], 3
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b918
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x70], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b93d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
or edx, 0xffffffff
lea ecx, [esi + 0xc]
mov byte [esp + 0x70], 1
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b95b
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov byte [esp + 0x70], 0
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 0x40b980
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x70], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
jmp 0x40b78d
cmp byte [esp + 0x27], 0
jne 0x40ba83
mov ecx, dword [esp + 0x20]
cmp dword [ecx - 0xc], 0
je 0x40ba50
lea eax, [esp + 0x20]
mov edi, ebx
call fcn.00402560
mov eax, dword [ebx]
sub eax, 0x10
call fcn.00402780
lea edi, [eax + 0x10]
mov dword [esp + 0x28], edi
push 0x2f
push edi
mov byte [esp + 0x78], 5
call fcn.0040e436
add esp, 8
test eax, eax
je 0x40ba42
sub eax, edi
sar eax, 1
js 0x40ba42
add eax, 1
lea ebx, [esp + 0x28]
call fcn.0040c540
mov edx, dword [esp + 0x28]
push str.error.html
push edx
call fcn.0040dfc9
add esp, 8
test eax, eax
jne 0x40ba3e
mov eax, ebx
call fcn.004020f0
lea eax, [esp + 0x20]
call fcn.004020f0
lea eax, [esp + 0x1c]
call fcn.004020f0
lea eax, [esp + 0x10]
call fcn.004020f0
lea eax, [esp + 0x18]
call fcn.004020f0
lea eax, [esp + 0x14]
call fcn.004020f0
jmp 0x40b7a6
mov ebx, dword [esp + 0x34]
lea eax, [esp + 0x28]
mov byte [esp + 0x70], 4
call fcn.004020f0
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call edi
mov ecx, dword [esp + 0x1c]
push ecx
call edi
push ecx
mov eax, esi
mov dword [esp + 0x38], esp
mov edi, esp
call fcn.00402780
add eax, 0x10
mov dword [edi], eax
mov edi, dword [esp + 0x30]
push edi
call fcn.0040bcb0
jmp 0x40ba87
mov edi, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
push edx
lea eax, [esp + 0x20]
push eax
push edi
lea eax, [esp + 0x1c]
call fcn.0040bb40
test al, al
je 0x40b8f3
mov ecx, dword [esp + 0x30]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x18]
push eax
push ebx
push edi
call fcn.0040bfa0
test al, al
lea eax, [esp + 0x20]
je 0x40ba10
call fcn.004020f0
lea eax, [esp + 0x1c]
call fcn.004020f0
lea eax, [esp + 0x10]
call fcn.004020f0
lea eax, [esp + 0x18]
call fcn.004020f0
lea eax, [esp + 0x14]
call fcn.004020f0
mov al, 1
jmp 0x40b7a8