Function at 0x408820
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x441918
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [0x458778]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x18], ebx
mov edx, dword [esp + 0x5c]
mov ecx, dword [edx - 0xc]
lea eax, [ecx - 1]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x40], 1
jl 0x408b7c
cmp eax, ecx
jg 0x408b7c
cmp byte [eax + edx], 0x5c
je 0x408887
push 1
push 0x4457f4
lea ecx, [esp + 0x64]
call fcn.00401e50
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x64]
call fcn.00401e50
mov edi, dword [esp + 0x5c]
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [esp + 0x24]
call fcn.00401400
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
mov esi, dword [esp + 0x60]
push ebp
add eax, ecx
push eax
push esi
mov byte [esp + 0x4c], 2
call fcn.0042bc85
add esp, 0xc
lea edx, [esp + 0x14]
push edx
push esi
lea eax, [esp + 0x2c]
push eax
mov ecx, ebx
mov dword [esp + 0x20], ebp
call fcn.004086b0
test al, al
jne 0x40894f
push 0x16
push 0x4469b0
mov ecx, 0x459d88
call fcn.00401c00
lea ecx, [esp + 0x24]
mov byte [esp + 0x40], 1
call fcn.00401320
lea ecx, [esp + 0x48]
mov byte [esp + 0x40], 0
call fcn.004090c0
lea eax, [edi - 0x10]
mov dword [esp + 0x40], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408937
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 0x20
mov eax, dword [esp + 0x2c]
xor ebx, ebx
cmp eax, ebp
jg 0x4089a4
lea ecx, [esp + 0x24]
mov byte [esp + 0x40], 1
call fcn.00401320
lea ecx, [esp + 0x48]
mov byte [esp + 0x40], 0
call fcn.004090c0
lea eax, [edi - 0x10]
mov dword [esp + 0x40], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408999
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
jmp 0x408939
mov esi, dword [esp + 0x60]
test ebp, ebp
jl 0x408b3e
cmp ebx, eax
jge 0x408b3e
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
add dword [ecx + ebp + 0xc], edx
cmp ebx, dword [esp + 0x2c]
lea eax, [ecx + ebp + 0xc]
jge 0x408b3e
mov eax, dword [esp + 0x28]
test byte [eax + ebp + 0x10], 0x80
je 0x408aab
mov ecx, dword [esp + 0x64]
push ecx
push esi
push ecx
lea eax, [edi - 0x10]
mov dword [esp + 0x28], esp
mov esi, esp
push eax
call fcn.004018c0
add eax, 0x10
add esp, 4
mov dword [esi], eax
cmp ebx, dword [esp + 0x38]
mov byte [esp + 0x4c], 3
jge 0x408b3e
mov edx, dword [esp + 0x34]
sub esp, 0x14
mov esi, esp
lea edi, [edx + ebp]
mov dword [esi], vtable.FileInfo.0
mov eax, dword [edi + 4]
sub eax, 0x10
mov dword [esp + 0x40], esp
push eax
call fcn.004018c0
add eax, 0x10
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov ecx, dword [edi + 0xc]
mov dword [esi + 0xc], ecx
mov dl, byte [edi + 0x10]
mov ecx, dword [esp + 0x3c]
mov byte [esi + 0x10], dl
add esp, 4
mov byte [esp + 0x60], 2
call fcn.00408820
test al, al
jne 0x408b23
push 0xa
push 0x4469a4
mov ecx, 0x459d88
call fcn.00401c00
lea ecx, [esp + 0x24]
mov byte [esp + 0x40], 1
call fcn.00401320
lea ecx, [esp + 0x48]
mov byte [esp + 0x40], 0
call fcn.004090c0
mov eax, dword [esp + 0x5c]
add eax, 0xfffffff0
mov dword [esp + 0x40], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x40892b
mov eax, dword [esp + 0x64]
push eax
push esi
push ecx
lea eax, [edi - 0x10]
mov dword [esp + 0x2c], esp
mov esi, esp
push eax
call fcn.004018c0
add eax, 0x10
add esp, 4
mov dword [esi], eax
cmp ebx, dword [esp + 0x38]
mov byte [esp + 0x4c], 4
jge 0x408b3e
mov ecx, dword [esp + 0x34]
sub esp, 0x14
mov esi, esp
lea edi, [ecx + ebp]
mov dword [esi], vtable.FileInfo.0
mov eax, dword [edi + 4]
sub eax, 0x10
mov dword [esp + 0x3c], esp
push eax
call fcn.004018c0
add eax, 0x10
mov dword [esi + 4], eax
mov edx, dword [edi + 8]
mov dword [esi + 8], edx
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov cl, byte [edi + 0x10]
mov byte [esi + 0x10], cl
mov ecx, dword [esp + 0x3c]
add esp, 4
mov byte [esp + 0x60], 2
call fcn.004082a0
test al, al
je 0x408b43
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x5c]
add ebx, 1
add ebp, 0x14
cmp ebx, eax
jl 0x4089a0
jmp 0x408959
call fcn.0040db65
push 0x16
push 0x4469b0
mov ecx, 0x459d88
call fcn.00401c00
lea ecx, [esp + 0x24]
mov byte [esp + 0x40], 1
call fcn.00401320
lea ecx, [esp + 0x48]
mov byte [esp + 0x40], 0
call fcn.004090c0
mov eax, dword [esp + 0x5c]
add eax, 0xfffffff0
jmp 0x408916
push 0x80070057
call fcn.004010a0
int3