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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x494980
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x4b9668]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov eax, dword [0x4b9668]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov ebx, 0xf
xor edi, edi
mov eax, ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], edi
mov byte [esp + 0x14], 0
lea esi, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x41ae40
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.004072f0
mov dword [esp + 0x58], edi
push edi
push 0x4ac6d4
lea ecx, [esp + 0x34]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], edi
mov byte [esp + 0x38], 0
call fcn.004072f0
mov byte [esp + 0x58], 1
mov ecx, dword [esp + 0x28]
cmp ecx, 0x10
mov edx, dword [esp + 0x14]
jb 0x41b01a
cmp edx, edi
mov esi, edx
je 0x41aeb6
cmp ecx, 0x10
mov eax, edx
jae 0x41ae9d
lea eax, [esp + 0x14]
cmp eax, esi
ja 0x41aeb6
cmp ecx, 0x10
mov eax, edx
jae 0x41aeac
lea eax, [esp + 0x14]
mov edi, dword [esp + 0x24]
add eax, edi
cmp esi, eax
jbe 0x41aec3
call fcn.0043ab1d
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
mov ebx, esi
cmp ecx, 0x10
mov eax, edx
jae 0x41aed0
lea eax, [esp + 0x14]
mov edi, dword [esp + 0x24]
lea esi, [eax + edi]
test esi, esi
je 0x41aefb
cmp ecx, 0x10
mov eax, edx
jae 0x41aee6
lea eax, [esp + 0x14]
cmp eax, esi
ja 0x41aefb
cmp ecx, 0x10
mov eax, edx
jae 0x41aef5
lea eax, [esp + 0x14]
add eax, edi
cmp esi, eax
jbe 0x41af08
call fcn.0043ab1d
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
cmp ebx, esi
je 0x41b062
lea eax, [esp + 0x10]
cmp eax, 0xfffffffe
mov esi, 0x10
je 0x41af3f
cmp ecx, esi
mov eax, edx
jae 0x41af28
lea eax, [esp + 0x14]
mov edi, dword [esp + 0x24]
add eax, edi
cmp ebx, eax
jb 0x41af3f
call fcn.0043ab1d
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
cmp byte [ebx], 0x5c
je 0x41af73
lea eax, [esp + 0x10]
cmp eax, 0xfffffffe
je 0x41af6e
cmp ecx, esi
mov eax, edx
jae 0x41af57
lea eax, [esp + 0x14]
mov edi, dword [esp + 0x24]
add eax, edi
cmp ebx, eax
jb 0x41af6e
call fcn.0043ab1d
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
cmp byte [ebx], 0x2f
jne 0x41afb0
cmp dword [esp + 0x44], esi
mov eax, dword [esp + 0x30]
jae 0x41af81
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41afa8
cmp dword [esp + 0x44], esi
mov eax, dword [esp + 0x30]
jae 0x41af9b
lea eax, [esp + 0x30]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x41b023
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
cmp eax, 0xfffffffe
je 0x41afd2
cmp ecx, esi
mov eax, edx
jae 0x41afc3
lea eax, [esp + 0x14]
mov ecx, dword [esp + 0x24]
add eax, ecx
cmp ebx, eax
jb 0x41afd2
call fcn.0043ab1d
movzx edx, byte [ebx]
push edx
lea edi, [esp + 0x30]
call fcn.0040cf10
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
cmp eax, 0xfffffffe
je 0x41b012
cmp ecx, 0x10
mov eax, edx
jae 0x41affb
lea eax, [esp + 0x14]
mov esi, dword [esp + 0x24]
add eax, esi
cmp ebx, eax
jb 0x41b012
call fcn.0043ab1d
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
add ebx, 1
jmp 0x41aec5
lea esi, [esp + 0x14]
jmp 0x41ae92
cmp dword [esp + 0x44], esi
jb 0x41b036
mov ecx, dword [esp + 0x30]
push ecx
call fcn.0041d0c9
add esp, 4
cmp dword [esp + 0x28], esi
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
jb 0x41b05e
mov edx, dword [esp + 0x14]
push edx
call fcn.0041d0c9
add esp, 4
xor al, al
jmp 0x41b0a3
cmp dword [esp + 0x44], 0x10
jb 0x41b07e
mov eax, dword [esp + 0x30]
push eax
call fcn.0041d0c9
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
add esp, 4
cmp ecx, 0x10
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
jb 0x41b0a1
push edx
call fcn.0041d0c9
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0043a54e
mov esp, ebp
pop ebp
ret