Function at 0x41f9d1
Capabilities:
Check if file exists
Create directory
Get file attributes
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x555d3f
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x5aff20]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [esp + 0x24], esi
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.0041cbba
lea edi, [eax + 0x10]
pop ecx
mov dword [esp + 0x20], edi
mov dword [esp + 0x58], esi
mov eax, dword [edi - 0xc]
cmp eax, esi
jne 0x41fa33
lea ecx, [edi - 0x10]
call fcn.00401621
xor eax, eax
jmp 0x41fd3a
lea ecx, [eax - 1]
cmp ecx, esi
jl 0x41fbef
cmp ecx, eax
jg 0x41fbef
cmp word [edi + ecx*2], 0x5c
je 0x41fa5c
push 0x5c
lea ecx, [esp + 0x24]
call fcn.00421bfe
mov edi, dword [esp + 0x20]
xor ebx, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov byte [esp + 0x58], 2
call fcn.0042d36a
push eax
lea ecx, [esp + 0x1c]
call fcn.004015bc
mov byte [esp + 0x58], 3
mov eax, dword [edi - 0xc]
xor ecx, ecx
mov byte [esp + 0x16], 1
mov dword [esp + 0x1c], ecx
test eax, eax
jg 0x41fb66
sub esi, ebx
sar esi, 2
test esi, esi
je 0x41fb35
mov eax, dword [ebx]
sub eax, 0x10
push eax
call fcn.0041cbba
lea esi, [eax + 0x10]
pop ecx
mov dword [esp + 0x1c], esi
mov byte [esp + 0x58], 5
cmp dword [esi - 0xc], 2
jne 0x41fb02
push 1
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x24]
call fcn.0042149e
mov byte [esp + 0x58], 6
push 0x589aa0
mov ecx, eax
mov dword [esp + 0x28], 1
call fcn.0041bdd9
mov byte [esp + 0x17], 0
test eax, eax
je 0x41fb07
mov byte [esp + 0x17], 1
mov dword [esp + 0x58], 5
test byte [esp + 0x24], 1
je 0x41fb22
mov ecx, dword [esp + 0x28]
add ecx, 0xfffffff0
call fcn.00401621
cmp byte [esp + 0x17], 0
je 0x41fbf9
lea ecx, [esi - 0x10]
call fcn.00401621
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.00401621
lea esi, [esp + 0x3c]
mov byte [esp + 0x58], 1
call fcn.0042154c
lea esi, [esp + 0x2c]
mov byte [esp + 0x58], 0
call fcn.0042154c
jmp 0x41fa24
mov ecx, dword [esp + 0x1c]
test ecx, ecx
js 0x41fbef
cmp ecx, eax
jg 0x41fbef
movzx edx, word [edi + ecx*2]
cmp edx, 0x5c
je 0x41fb82
cmp ecx, eax
jg 0x41fbef
push edx
jmp 0x41fbcc
push 1
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x20]
call fcn.0042149e
push 0x585004
mov ecx, eax
mov byte [esp + 0x5c], 4
call fcn.0041bdd9
test eax, eax
mov byte [esp + 0x58], 3
mov ecx, dword [esp + 0x28]
setne bl
add ecx, 0xfffffff0
call fcn.00401621
test bl, bl
je 0x41fbd5
lea ecx, [esp + 0x18]
lea esi, [esp + 0x2c]
call fcn.0042157f
push 0x5c
lea ecx, [esp + 0x1c]
call fcn.00421bfe
mov eax, dword [edi - 0xc]
inc dword [esp + 0x1c]
cmp dword [esp + 0x1c], eax
jl 0x41fb62
mov esi, dword [esp + 0x34]
mov ebx, dword [esp + 0x2c]
jmp 0x41faa5
push 0x80070057
call fcn.0040176d
cmp dword [esi - 4], 1
jle 0x41fc0f
push dword [esi - 0xc]
lea ecx, [esp + 0x20]
call fcn.0040163b
mov esi, dword [esp + 0x1c]
push 0
push esi
call fcn.00522f0f
pop ecx
pop ecx
push 0xffffffffffffffff
lea ecx, [esp + 0x20]
cmp eax, 0xffffffff
jne 0x41fc2e
call fcn.0041b14a
jmp 0x41fb2d
call fcn.0041b14a
lea ecx, [esi - 0x10]
mov byte [esp + 0x58], 3
call fcn.00401621
jmp 0x41fc73
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41fc73
mov eax, dword [ebx]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne byte [esp + 0x16]
cmp byte [esp + 0x16], 0
je 0x41fc7c
mov ecx, ebx
lea esi, [esp + 0x3c]
call fcn.0042157f
add ebx, 4
cmp ebx, dword [esp + 0x30]
jne 0x41fc42
mov ebx, dword [esp + 0x40]
jmp 0x41fcb7
sub esp, 0x1c
add ebx, 0xfffffffc
mov eax, dword [ebx]
mov esi, esp
mov dword [esp + 0x44], esp
push eax
call fcn.0040829d
push 0
mov byte [esp + 0x78], 7
call fcn.00402c67
pop ecx
push eax
mov byte [esp + 0x78], 3
call fcn.0040df09
test eax, eax
setne al
test al, al
je 0x41fcbf
cmp ebx, dword [esp + 0x3c]
jne 0x41fc82
jmp 0x41fcc4
mov byte [esp + 0x16], 0
cmp byte [esp + 0x16], 0
je 0x41fd03
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x2c], eax
je 0x41fd03
mov eax, dword [eax - 4]
sub eax, 0x10
push eax
call fcn.0041cbba
lea esi, [eax + 0x10]
pop ecx
mov dword [esp + 0x28], esi
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x28]
push eax
mov byte [esp + 0x5c], 8
call fcn.0041cc18
lea ecx, [esi - 0x10]
call fcn.00401621
mov ecx, dword [esp + 0x18]
movzx ebx, byte [esp + 0x16]
add ecx, 0xfffffff0
call fcn.00401621
lea esi, [esp + 0x3c]
mov byte [esp + 0x58], 1
call fcn.0042154c
lea esi, [esp + 0x2c]
mov byte [esp + 0x58], 0
call fcn.0042154c
lea ecx, [edi - 0x10]
call fcn.00401621
mov eax, ebx
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4