Function at 0x409d20
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55d9b6
mov eax, dword fs:[0]
push eax
sub esp, 0x170
mov eax, dword [0x5b7de4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x164], edi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0xf
mov byte [ebp - 0x130], 0
push 0x104
lea eax, [ebp - 0x118]
mov dword [ebp - 4], 0
push eax
push dword [0x5c85e0]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x409db8
add eax, 0xffffffff
mov ecx, 2
js 0x409db8
cmp byte [ebp + eax - 0x118], 0x5c
jne 0x409db3
sub ecx, 1
je 0x409e5e
sub eax, 1
jns 0x409da0
push 1
push 0x571588
lea ecx, [ebp - 0x130]
call fcn.0040a340
test esi, esi
je 0x409de9
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409dd3
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x130]
call fcn.0040a340
lea eax, [ebp - 0x130]
push eax
call fcn.0040c7d0
add esp, 4
cmp dword [ebp + 0xc], 0
je 0x409e1d
test esi, esi
je 0x409e1d
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409e07
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x130]
call fcn.0040a4a0
mov ecx, dword [ebp - 0x120]
mov edx, dword [ebp - 0x11c]
mov esi, dword [ebp - 0x130]
test ecx, ecx
je 0x409f96
cmp edx, 0x10
lea eax, [ebp - 0x130]
cmovae eax, esi
cmp byte [ecx + eax - 1], 0x5c
jne 0x409f96
lea edi, [ecx - 1]
cmp ecx, edi
jb 0x40a048
jmp 0x409f61
cmp eax, 0x105
jae 0x40a04d
lea ecx, [ebp - 0x118]
mov byte [ebp + eax - 0x118], 0
mov dword [ebp - 0x150], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x14c], 0xf
mov byte [ebp - 0x160], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409e95
sub ecx, edx
lea eax, [ebp - 0x118]
push ecx
push eax
lea ecx, [ebp - 0x160]
call fcn.0040a4a0
push 5
push str.logs
lea ecx, [ebp - 0x160]
mov byte [ebp - 4], 1
call fcn.0040a340
lea ecx, [ebp - 0x130]
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x17c], xmm0
movups xmmword [ebp - 0x148], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
movq qword [ebp - 0x16c], xmm0
movq qword [ebp - 0x138], xmm0
mov byte [eax], 0
call fcn.00408f00
movups xmm0, xmmword [ebp - 0x17c]
lea ecx, [ebp - 0x148]
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x134], 0xf
movups xmmword [ebp - 0x130], xmm0
mov byte [ebp - 0x148], 0
movq xmm0, qword [ebp - 0x16c]
movq qword [ebp - 0x120], xmm0
call fcn.00408f00
lea ecx, [ebp - 0x160]
mov byte [ebp - 4], 0
call fcn.00408f00
jmp 0x409db8
cmp edx, 0x10
mov dword [ebp - 0x120], edi
lea ecx, [ebp - 0x130]
cmovae ecx, esi
add ecx, edi
push 1
lea eax, [ecx + 1]
push eax
push ecx
call fcn.00530560
mov edx, dword [ebp - 0x11c]
add esp, 0xc
mov esi, dword [ebp - 0x130]
mov edi, dword [ebp - 0x164]
cmp edx, 0x10
lea eax, [ebp - 0x130]
push 0
cmovae eax, esi
push eax
call fcn.0040c7a0
add esp, 8
test eax, eax
jne 0x409fce
cmp dword [ebp - 0x11c], 0x10
lea eax, [ebp - 0x130]
push 0
cmovae eax, dword [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [edi + 0x1c]
lea eax, [ebp - 0x130]
cmp ecx, eax
je 0x409ff5
cmp dword [ebp - 0x11c], 0x10
push dword [ebp - 0x120]
cmovae eax, dword [ebp - 0x130]
push eax
call fcn.0040a4a0
mov edx, dword [ebp - 0x11c]
cmp edx, 0x10
jb 0x40a02b
mov ecx, dword [ebp - 0x130]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a021
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a052
push edx
push ecx
call fcn.005189ee
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005189ad
mov esp, ebp
pop ebp
ret 8
call fcn.0040a2d0
call fcn.00518eb8
call fcn.00545078
int3