Function at 0x406250
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x43fab0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x452570]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x2c], ebx
mov eax, dword [esp + 0x34]
mov esi, dword [eax - 0xc]
cmp esi, 2
jge 0x4062bd
or edi, 0xffffffff
mov dword [esp + 0x2c], edi
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x4062a8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x20
ret
lea ecx, [esi - 1]
cmp ecx, ebx
jl 0x4064b9
cmp ecx, esi
jg 0x4064b9
mov dl, byte [ecx + eax]
or edi, 0xffffffff
cmp dl, 0x5c
jne 0x406323
push ecx
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x3c]
call fcn.004070d0
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x30], 1
call fcn.00407380
mov byte [esp + 0x2c], bl
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40631c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x34]
mov esi, dword [eax - 0xc]
cmp esi, ebx
jle 0x40628b
push ecx
add eax, 0xfffffff0
cmp esi, 3
mov dword [esp + 0x18], esp
mov esi, esp
push eax
jg 0x406391
call fcn.00401a80
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00406200
add esp, 4
mov dword [esp + 0x2c], edi
cmp eax, ebx
mov eax, dword [esp + 0x34]
je 0x40628f
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x406379
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x20
ret
call fcn.00401a80
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00406200
add esp, 4
cmp eax, ebx
je 0x4063b4
mov dword [esp + 0x2c], edi
mov eax, dword [esp + 0x34]
jmp 0x406360
lea ecx, [esp + 0x10]
call fcn.004016d0
mov byte [esp + 0x2c], 2
mov ecx, dword [esp + 0x34]
push 0x5c
push ecx
call fcn.0042a731
add esp, 8
cmp eax, ebx
jne 0x4063d9
mov eax, edi
jmp 0x4063dd
sub eax, dword [esp + 0x34]
push eax
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x3c]
call fcn.004070d0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 3
call fcn.00407380
mov byte [esp + 0x2c], 2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x40641d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x10]
cmp dword [ecx - 0xc], ebx
jg 0x40644d
lea ecx, [esp + 0x10]
call fcn.00401b30
lea ecx, [esp + 0x34]
call fcn.00401b30
xor eax, eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x20
ret
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.00401af0
call fcn.00406250
add esp, 4
cmp eax, ebx
je 0x406426
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x18]
push eax
push ecx
mov dword [esp + 0x20], 0xc
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, eax
dec esi
neg esi
sbb esi, esi
lea ecx, [esp + 0x10]
inc esi
call fcn.00401b30
lea ecx, [esp + 0x34]
call fcn.00401b30
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x20
ret
push 0x80070057
call fcn.00401a50
int3