Function at 0x406a9c
Capabilities:
Create directory

Disassembly:
mov eax, 0x4ff2df
call fcn.004af370
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.004afff1
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
mov dword [ebp - 0x14], ebx
je 0x406dd7
and dword [ebp - 0x24], 0
push edi
call esi
test eax, eax
jle 0x406b08
sub ebx, edi
mov al, byte [edi]
cmp al, 0x5c
je 0x406af6
cmp al, 0x2f
je 0x406af6
mov byte [ebx + edi], al
jmp 0x406afa
mov byte [ebx + edi], 0x5c
push dword [ebp + 0x10]
inc dword [ebp - 0x24]
inc edi
call esi
cmp dword [ebp - 0x24], eax
jl 0x406ae7
lea ecx, [ebp - 0x4c]
call fcn.004d40c0
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.004d6310
push 2
push 0xffffffffffffffff
push 0xfffffffffffffffc
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.004d58d0
push 4
pop edi
push edi
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x1c], esi
call fcn.004d5830
cmp dword [ebp - 0x1c], esi
je 0x406c09
push 2
push 0xffffffffffffffff
push 0xfffffffffffffff8
lea ecx, [ebp - 0x38]
call fcn.004d58d0
push edi
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x38]
call fcn.004d5830
push 1
push 0xfffffffffffffffc
pop eax
sub eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x38]
cdq
push edx
push eax
call fcn.004d58d0
push edi
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x38]
call fcn.004d5830
cmp byte [ebp - 0x18], 0x53
jne 0x406ba7
cmp byte [ebp - 0x17], 0x41
jne 0x406ba7
cmp byte [ebp - 0x16], 0x46
jne 0x406ba7
cmp byte [ebp - 0x15], 0
je 0x406baa
mov dword [ebp - 0x1c], esi
cmp dword [ebp - 0x1c], esi
je 0x406c09
push edi
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x28], esi
call fcn.004d5830
cmp dword [ebp - 0x28], esi
jne 0x406bc7
mov dword [ebp - 0x1c], esi
cmp dword [ebp - 0x1c], esi
je 0x406c09
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x154]
push eax
call fcn.00404339
pop ecx
pop ecx
push str.Application
lea eax, [ebp - 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x406bf7
mov dword [ebp - 0x1c], esi
cmp dword [ebp - 0x1c], esi
je 0x406c09
push edi
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x38]
call fcn.004d5830
call fcn.004d41f0
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 0x406c73
push dword [ebp - 0x14]
lea eax, [ebp - 0x18]
push eax
call fcn.004066cb
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.004aead9
pop ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x14], esi
call fcn.004028b4
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
jmp 0x406d90
mov edi, 0x504c10
push edi
push dword [ebp - 0x14]
call fcn.004b0366
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x44]
push eax
call fcn.00402a49
add esp, 0xc
push str._extra_
push eax
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 5
call fcn.00402e2f
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 0x406d60
push dword [ebp - 0x24]
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x38]
push eax
call fcn.004052cb
add esp, 0x10
cmp eax, 0xffffffff
mov dword [ebp - 0x40], eax
jne 0x406d0c
push dword [ebp - 0x14]
call fcn.004aead9
mov ecx, dword [ebp + 8]
and dword [ebp - 0x14], 0
mov dword [esp], 0x504b37
call fcn.00403935
jmp 0x406d82
push dword [ebp - 0x18]
lea ecx, [ebp - 0x20]
call fcn.00402fc1
cmp dword [ebp - 0x40], 0
jne 0x406d3e
push dword [ebp - 0x14]
call fcn.004aead9
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.004067ba
jmp 0x406d7f
push edi
lea ecx, [ebp - 0x20]
call fcn.00402fc1
push 0
push dword [ebp - 0x20]
call esi
push edi
push 0
call fcn.004b0366
pop ecx
pop ecx
mov dword [ebp - 0x18], eax
jmp 0x406cc7
push dword [ebp - 0x14]
call fcn.004aead9
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.00406951
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.004d5c00
or dword [ebp - 4], 0xffffffff
call fcn.004d4100
jmp 0x406de4
mov ecx, dword [ebp + 8]
push 0x504b37
call fcn.00403935
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret