Function at 0x406af8
Capabilities:
Create directory

Disassembly:
mov eax, 0x50078f
call fcn.004b00d0
sub esp, 0x148
and dword [ebp - 0x40], 0
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x10], esp
push edi
call esi
inc eax
push eax
push 1
call fcn.004b0d51
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
mov dword [ebp - 0x14], ebx
je 0x406e33
and dword [ebp - 0x24], 0
push edi
call esi
test eax, eax
jle 0x406b64
sub ebx, edi
mov al, byte [edi]
cmp al, 0x5c
je 0x406b52
cmp al, 0x2f
je 0x406b52
mov byte [ebx + edi], al
jmp 0x406b56
mov byte [ebx + edi], 0x5c
push dword [ebp + 0x10]
inc dword [ebp - 0x24]
inc edi
call esi
cmp dword [ebp - 0x24], eax
jl 0x406b43
lea ecx, [ebp - 0x4c]
call fcn.004d5100
push 0x20
push dword [ebp + 0xc]
xor esi, esi
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.004d77c0
push 2
push 0xffffffffffffffff
push 0xfffffffffffffffc
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.004d6d80
push 4
pop edi
push edi
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x1c], esi
call fcn.004d6ce0
cmp dword [ebp - 0x1c], esi
je 0x406c65
push 2
push 0xffffffffffffffff
push 0xfffffffffffffff8
lea ecx, [ebp - 0x38]
call fcn.004d6d80
push edi
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x38]
call fcn.004d6ce0
push 1
push 0xfffffffffffffffc
pop eax
sub eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x38]
cdq
push edx
push eax
call fcn.004d6d80
push edi
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x38]
call fcn.004d6ce0
cmp byte [ebp - 0x18], 0x53
jne 0x406c03
cmp byte [ebp - 0x17], 0x41
jne 0x406c03
cmp byte [ebp - 0x16], 0x46
jne 0x406c03
cmp byte [ebp - 0x15], 0
je 0x406c06
mov dword [ebp - 0x1c], esi
cmp dword [ebp - 0x1c], esi
je 0x406c65
push edi
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x28], esi
call fcn.004d6ce0
cmp dword [ebp - 0x28], esi
jne 0x406c23
mov dword [ebp - 0x1c], esi
cmp dword [ebp - 0x1c], esi
je 0x406c65
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x154]
push eax
call fcn.004043df
pop ecx
pop ecx
push str.Application
lea eax, [ebp - 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x406c53
mov dword [ebp - 0x1c], esi
cmp dword [ebp - 0x1c], esi
je 0x406c65
push edi
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x38]
call fcn.004d6ce0
call fcn.004d5230
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x28], ebx
xor esi, esi
cmp dword [ebp - 0x1c], esi
mov byte [ebp - 4], 3
jne 0x406ccf
push dword [ebp - 0x14]
lea eax, [ebp - 0x18]
push eax
call fcn.00406727
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.004016ca
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov byte [ebp - 4], 3
call fcn.0040141b
push dword [ebp - 0x14]
call fcn.004af839
pop ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x14], esi
call fcn.00402910
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
jmp 0x406dec
mov edi, 0x506c20
push edi
push dword [ebp - 0x14]
call fcn.004b10c6
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x44]
push eax
call fcn.00402aa5
add esp, 0xc
push str._extra_
push eax
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 5
call fcn.00402e8b
add esp, 0xc
mov ecx, dword [ebp - 0x44]
add ecx, 0xfffffff0
mov byte [ebp - 4], 7
call fcn.0040141b
push esi
push dword [ebp - 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
call esi
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x18], 0
je 0x406dbc
push dword [ebp - 0x24]
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x38]
push eax
call fcn.00405371
add esp, 0x10
cmp eax, 0xffffffff
mov dword [ebp - 0x40], eax
jne 0x406d68
push dword [ebp - 0x14]
call fcn.004af839
mov ecx, dword [ebp + 8]
and dword [ebp - 0x14], 0
mov dword [esp], 0x506b47
call fcn.00403991
jmp 0x406dde
push dword [ebp - 0x18]
lea ecx, [ebp - 0x20]
call fcn.0040301d
cmp dword [ebp - 0x40], 0
jne 0x406d9a
push dword [ebp - 0x14]
call fcn.004af839
push dword [ebp - 0x3c]
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
call fcn.00406816
jmp 0x406ddb
push edi
lea ecx, [ebp - 0x20]
call fcn.0040301d
push 0
push dword [ebp - 0x20]
call esi
push edi
push 0
call fcn.004b10c6
pop ecx
pop ecx
mov dword [ebp - 0x18], eax
jmp 0x406d23
push dword [ebp - 0x14]
call fcn.004af839
push dword [ebp - 0x3c]
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
call fcn.004069ad
add esp, 0x14
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.0040141b
lea ecx, [ebx - 0x10]
call fcn.0040141b
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.004d70b0
or dword [ebp - 4], 0xffffffff
call fcn.004d5140
jmp 0x406e40
mov ecx, dword [ebp + 8]
push 0x506b47
call fcn.00403991
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret