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

Disassembly:
push 0xffffffffffffffff
push 0x4d73c1
mov eax, dword fs:[0]
push eax
sub esp, 0xc60
mov eax, dword [0x51d260]
xor eax, esp
mov dword [esp + 0xc5c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x51d260]
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 0x406450
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x474]
push eax
lea ecx, [esp + 0x24]
call fcn.00405d00
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 0x40649b
call fcn.004a067d
mov eax, dword [esp + 0x20]
mov edi, 8
cmp dword [esp + 0x34], edi
jae 0x4064ae
lea eax, [esp + 0x20]
mov ax, word [eax + esi*2]
cmp ax, word [esp + 0x18]
je 0x4064e9
cmp ebx, esi
jle 0x4064e9
cmp esi, dword [esp + 0x30]
jbe 0x4064c8
call fcn.004a067d
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x34], edi
jae 0x4064d6
lea eax, [esp + 0x20]
movzx ecx, word [eax + esi*2]
push ecx
push 1
lea ecx, [esp + 0x40]
call fcn.00405c40
inc esi
jmp 0x406490
cmp esi, dword [esp + 0x30]
jbe 0x4064f4
call fcn.004a067d
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x34], edi
jae 0x406502
lea eax, [esp + 0x20]
movzx edx, word [eax + esi*2]
push edx
push 1
lea ecx, [esp + 0x40]
call fcn.00405c40
mov eax, dword [esp + 0x3c]
inc esi
cmp dword [esp + 0x50], edi
jae 0x406521
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 0x406543
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 0x406490
mov esi, 8
cmp dword [esp + 0x50], esi
jb 0x406585
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.0048f8b2
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 0x4065ae
mov eax, dword [esp + 0x58]
push eax
call fcn.0048f8b2
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 0x4065d0
mov edx, dword [esp + 0x20]
push edx
call fcn.0048f8b2
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.004a0abf
add esp, 0xc6c
ret