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

Disassembly:
sub esp, 0x1c8
mov eax, dword [0x437348]
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 0x41bad0
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.004298e2
mov edi, eax
lea eax, [esp + 0x88]
push eax
call fcn.004298e2
add esp, 8
cmp eax, edi
jg 0x41bab8
lea ecx, [esp + 0x20]
push ecx
call fcn.004298e2
add esp, 4
test eax, eax
jg 0x41badf
mov edx, dword [ebx + 0x24]
push 0
push 0
push 0x1004
push edx
inc esi
call ebp
cmp esi, eax
jl 0x41ba02
mov esi, dword [esp + 0x1dc]
test esi, esi
jne 0x41bb20
xor eax, eax
jmp 0x41bb27
mov eax, dword [esp + 0x10]
mov edx, dword [0x43734c]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x41bb0e
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41bb0e
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.004292c0
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.00402510
push 0
push 0x437e44
lea ecx, [esp + 0x18]
call fcn.00409be0
cmp eax, 0xffffffff
jne 0x41bfb1
push 0
push 0x438410
lea ecx, [esp + 0x18]
call fcn.00409be0
cmp eax, 0xffffffff
jne 0x41bfb1
push 0
push 0x43840c
lea ecx, [esp + 0x18]
call fcn.00409be0
cmp eax, 0xffffffff
jne 0x41bfb1
push 0
push 0x437c24
lea ecx, [esp + 0x18]
call fcn.00409be0
cmp eax, 0xffffffff
jne 0x41bfb1
push 0
push 0x438408
lea ecx, [esp + 0x18]
call fcn.00409be0
cmp eax, 0xffffffff
jne 0x41bfb1
push 0
push 0x438404
lea ecx, [esp + 0x18]
call fcn.00409be0
cmp eax, 0xffffffff
jne 0x41bfb1
push 0
push str.___
lea ecx, [esp + 0x18]
call fcn.00409be0
cmp eax, 0xffffffff
jne 0x41bfb1
mov ecx, dword [esp + 0x10]
cmp byte [ecx + 1], 0x3a
jne 0x41bf8c
cmp byte [ecx + 2], 0x5c
jne 0x41bf8c
mov ecx, dword [ecx - 8]
mov eax, 3
xor ebp, ebp
cmp ecx, eax
jge 0x41bc09
mov eax, ecx
mov ecx, dword [0x437348]
push 0
push 0
lea edx, [esp + 0x20]
mov dword [esp + 0x20], ecx
push eax
push edx
lea ecx, [esp + 0x20]
call fcn.00412690
lea eax, [esp + 0x18]
lea ecx, [esp + 0x14]
push eax
call fcn.004022c0
lea ecx, [esp + 0x18]
call fcn.004024e0
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 0x41bde0
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push eax
call ebx
cmp eax, 0xffffffff
je 0x41bc78
and eax, 0x10
test al, al
je 0x41be41
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 0x41bd82
add ecx, eax
push 0x437448
push ecx
call fcn.0042a63f
mov ecx, dword [esp + 0x18]
add esp, 8
test eax, eax
je 0x41bd82
sub eax, ecx
test eax, eax
jle 0x41bd82
inc eax
test eax, eax
jge 0x41bcc6
xor eax, eax
jmp 0x41bccf
mov ecx, dword [ecx - 8]
cmp eax, ecx
jle 0x41bccf
mov eax, ecx
mov edx, dword [0x437348]
push 0
push 0
push eax
lea eax, [esp + 0x28]
lea ecx, [esp + 0x1c]
push eax
mov dword [esp + 0x2c], edx
call fcn.00412690
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004022c0
lea ecx, [esp + 0x1c]
call fcn.004024e0
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
cmp ecx, eax
je 0x41bd55
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x41bd23
mov edx, dword [0x43734c]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x41bd2a
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x41bd3a
mov edx, dword [eax - 8]
push eax
push edx
lea ecx, [esp + 0x1c]
call fcn.00402510
jmp 0x41bd51
lea ecx, [esp + 0x14]
call fcn.00402400
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 [0x43734c]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x41bdcc
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41bdcc
mov edx, dword [esp + 0x18]
add edx, 0xfffffff4
push edx
call fcn.004292c0
add esp, 4
jmp 0x41bdcc
mov eax, dword [esp + 0x14]
cmp eax, ecx
je 0x41bdd0
mov edx, dword [eax - 0xc]
test edx, edx
jge 0x41bd9e
mov edx, dword [0x43734c]
add eax, 0xfffffff4
cmp eax, edx
jne 0x41bda5
mov eax, dword [ecx - 0xc]
test eax, eax
jge 0x41bdb5
mov eax, dword [ecx - 8]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00402510
jmp 0x41bdcc
lea ecx, [esp + 0x14]
call fcn.00402400
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 0x41bc65
push ecx
call ebx
cmp eax, 0xffffffff
je 0x41bea4
and eax, 0x10
test al, al
jne 0x41bea4
mov eax, dword [esp + 0x14]
mov edx, dword [0x43734c]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x41be26
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41be26
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.004292c0
add esp, 4
lea ecx, [esp + 0x10]
call fcn.004024e0
pop edi
pop esi
pop ebp
mov eax, 0x82
pop ebx
add esp, 0x1c8
ret 4
mov eax, dword [esp + 0x14]
mov edx, dword [0x43734c]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x41be70
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41be70
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.004292c0
add esp, 4
mov eax, dword [esp + 0x10]
mov edx, dword [0x43734c]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x41bfe0
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41bfe0
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
jmp 0x41bfd8
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 0x41beeb
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor ebx, ebx
cmp esi, 0xffffffff
sete bl
test ebp, ebp
je 0x41bf47
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.00429670
add esp, 8
test eax, eax
jne 0x41bf1e
or eax, 0xffffffff
jmp 0x41bf22
sub eax, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push eax
push edx
lea ecx, [esp + 0x1c]
call fcn.0041c290
push eax
lea ecx, [esp + 0x18]
call fcn.00404430
lea ecx, [esp + 0x1c]
call fcn.004024e0
dec edi
jne 0x41beff
test ebx, ebx
lea ecx, [esp + 0x14]
je 0x41bf6f
call fcn.004024e0
lea ecx, [esp + 0x10]
call fcn.004024e0
pop edi
pop esi
pop ebp
mov eax, 0x82
pop ebx
add esp, 0x1c8
ret 4
call fcn.004024e0
lea ecx, [esp + 0x10]
call fcn.004024e0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c8
ret 4
mov edx, dword [0x43734c]
lea eax, [ecx - 0xc]
cmp eax, edx
je 0x41bfe0
add ecx, 0xfffffff4
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41bfe0
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff4
push ecx
jmp 0x41bfd8
mov eax, dword [esp + 0x10]
mov ecx, dword [0x43734c]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x41bfe0
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41bfe0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.004292c0
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 0x82
pop ebx
add esp, 0x1c8
ret 4