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

Disassembly:
push 0xffffffffffffffff
push 0x514388
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x549950]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x549950]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
xor ebp, ebp
xor eax, eax
mov word [esp + 0x30], ax
mov edi, 7
mov eax, edx
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], ebp
lea esi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x4997f0
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x34]
call fcn.00401740
mov dword [esp + 0x70], ebp
mov eax, dword [esp + 0x40]
lea esi, [eax - 1]
cmp esi, eax
jbe 0x49981e
call fcn.004df604
mov eax, dword [esp + 0x30]
mov ebx, 8
cmp dword [esp + 0x44], ebx
jae 0x499831
lea eax, [esp + 0x30]
cmp word [eax + esi*2], 0x5c
je 0x499845
push 0x5c
push 1
lea ecx, [esp + 0x34]
call fcn.00499a40
lea ecx, [esp + 0x14]
push ecx
call fcn.00407190
xor edx, edx
mov dword [esp + 0x60], edi
mov dword [esp + 0x5c], ebp
mov word [esp + 0x4c], dx
mov byte [esp + 0x70], 2
mov ecx, dword [esp + 0x40]
xor esi, esi
cmp ecx, ebp
jbe 0x4998e1
cmp esi, ecx
jbe 0x49987a
call fcn.004df604
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x44], ebx
jae 0x499888
lea eax, [esp + 0x30]
cmp word [eax + esi*2], 0x5c
je 0x4998b8
cmp esi, ecx
jbe 0x499898
call fcn.004df604
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x44], ebx
jae 0x4998a6
lea eax, [esp + 0x30]
movzx eax, word [eax + esi*2]
push eax
push 1
lea ecx, [esp + 0x50]
call fcn.00499a40
jmp 0x4998d8
lea ecx, [esp + 0x48]
push ecx
lea ebx, [esp + 0x18]
call fcn.00404ab0
push 0x5c
push 1
lea ecx, [esp + 0x50]
call fcn.00499a40
mov ebx, 8
mov ecx, dword [esp + 0x40]
inc esi
cmp esi, ecx
jb 0x49987a
mov esi, dword [esp + 0x20]
cmp esi, dword [esp + 0x24]
jbe 0x4998f0
call fcn.004df604
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x24]
cmp dword [esp + 0x20], ebx
jbe 0x499903
call fcn.004df604
test edi, edi
je 0x49990d
cmp edi, dword [esp + 0x14]
je 0x499912
call fcn.004df604
cmp esi, ebx
je 0x49996c
test edi, edi
jne 0x499936
call fcn.004df604
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x49992b
call fcn.004df604
cmp dword [esi + 0x18], 8
jb 0x49993a
mov eax, dword [esi + 4]
jmp 0x49993d
mov eax, dword [edi]
jmp 0x499921
lea eax, [esi + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, eax
neg ebp
sbb ebp, ebp
neg ebp
test edi, edi
jne 0x499968
call fcn.004df604
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x499963
call fcn.004df604
add esi, 0x1c
jmp 0x4998f4
mov eax, dword [edi]
jmp 0x499959
mov ebx, 8
cmp dword [esp + 0x60], ebx
jb 0x499984
mov edx, dword [esp + 0x4c]
push edx
call fcn.004c0153
add esp, 4
mov esi, dword [esp + 0x20]
xor eax, eax
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], 0
mov word [esp + 0x4c], ax
test esi, esi
je 0x4999ea
mov edi, dword [esp + 0x24]
cmp esi, edi
je 0x4999dd
add esi, 0x18
mov edi, edi
cmp dword [esi], ebx
jb 0x4999c0
mov ecx, dword [esi - 0x14]
push ecx
call fcn.004c0153
add esp, 4
xor edx, edx
mov dword [esi], 7
mov dword [esi - 4], 0
mov word [esi - 0x14], dx
add esi, 0x1c
lea eax, [esi - 0x18]
cmp eax, edi
jne 0x4999b0
mov ecx, dword [esp + 0x20]
push ecx
call fcn.004c0153
add esp, 4
mov edx, dword [esp + 0x14]
xor eax, eax
push edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
call fcn.004c0153
add esp, 4
cmp dword [esp + 0x44], ebx
jb 0x499a18
mov eax, dword [esp + 0x30]
push eax
call fcn.004c0153
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.004df2ac
add esp, 0x60
ret