Function at 0x406700
Capabilities:
Check for peb beingdebugged flag
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x4d5811
mov eax, dword fs:[0]
push eax
sub esp, 0xc60
mov eax, dword [0x51b260]
xor eax, esp
mov dword [esp + 0xc5c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x51b260]
xor eax, esp
push eax
lea eax, [esp + 0xc74]
mov dword fs:[0], eax
mov edi, dword [esp + 0xc84]
mov eax, 7
xor esi, esi
xor ecx, ecx
mov byte [esp + 0x17], 0x5c
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], esi
mov word [esp + 0x20], cx
xor edx, edx
mov dword [esp + 0xc7c], esi
mov dword [esp + 0x6c], eax
mov dword [esp + 0x68], esi
mov word [esp + 0x58], dx
mov dword [esp + 0x50], eax
xor eax, eax
mov dword [esp + 0x4c], esi
mov word [esp + 0x3c], ax
mov ebx, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
push esi
lea ecx, [esp + 0x474]
push ecx
push 0xffffffffffffffff
push edi
push esi
push esi
mov byte [esp + 0xc94], 2
call ebx
push eax
lea edx, [esp + 0x474]
push edx
push 0xffffffffffffffff
push edi
push esi
push esi
call ebx
lea eax, [esp + 0x470]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x4067c0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x474]
push eax
lea ecx, [esp + 0x24]
call fcn.00406070
push 2
lea ecx, [esp + 0x1c]
push ecx
push 0xffffffffffffffff
lea edx, [esp + 0x23]
push edx
push esi
push esi
call ebx
mov ebx, dword [esp + 0x30]
mov ebp, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
lea ecx, [ecx]
cmp esi, dword [esp + 0x30]
jbe 0x40680b
call fcn.0049eacd
mov eax, dword [esp + 0x20]
mov edi, 8
cmp dword [esp + 0x34], edi
jae 0x40681e
lea eax, [esp + 0x20]
mov ax, word [eax + esi*2]
cmp ax, word [esp + 0x18]
je 0x406859
cmp ebx, esi
jle 0x406859
cmp esi, dword [esp + 0x30]
jbe 0x406838
call fcn.0049eacd
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x34], edi
jae 0x406846
lea eax, [esp + 0x20]
movzx ecx, word [eax + esi*2]
push ecx
push 1
lea ecx, [esp + 0x40]
call fcn.00405fb0
inc esi
jmp 0x406800
cmp esi, dword [esp + 0x30]
jbe 0x406864
call fcn.0049eacd
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x34], edi
jae 0x406872
lea eax, [esp + 0x20]
movzx edx, word [eax + esi*2]
push edx
push 1
lea ecx, [esp + 0x40]
call fcn.00405fb0
mov eax, dword [esp + 0x3c]
inc esi
cmp dword [esp + 0x50], edi
jae 0x406891
lea eax, [esp + 0x3c]
push 0
push 0
push 0
lea ecx, [esp + 0x7c]
push ecx
push 0xffffffffffffffff
push eax
push 0
push 0
call ebp
mov ecx, dword [esp + 0x3c]
cmp dword [esp + 0x50], edi
jae 0x4068b3
lea ecx, [esp + 0x3c]
push 0
push 0
push eax
lea edx, [esp + 0x7c]
push edx
push 0xffffffffffffffff
push ecx
push 0
push 0
call ebp
push 0
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
cmp ebx, esi
mov edi, eax
jg 0x406800
mov esi, 8
cmp dword [esp + 0x50], esi
jb 0x4068f5
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.0048dd02
add esp, 4
xor ebx, ebx
xor edx, edx
mov ebp, 7
mov dword [esp + 0x50], ebp
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], dx
cmp dword [esp + 0x6c], esi
jb 0x40691e
mov eax, dword [esp + 0x58]
push eax
call fcn.0048dd02
add esp, 4
xor ecx, ecx
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x68], ebx
mov word [esp + 0x58], cx
cmp dword [esp + 0x34], esi
jb 0x406940
mov edx, dword [esp + 0x20]
push edx
call fcn.0048dd02
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0xc74]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc5c]
xor ecx, esp
call fcn.0049ef0f
add esp, 0xc6c
ret