Function at 0x402ae0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51c3a8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x565540]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x1c], esi
call fcn.00404603
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x402b2d
push 0x80004005
call fcn.00402130
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 1
call fcn.00404603
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x402b5a
push 0x80004005
call fcn.00402130
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x1c]
push ecx
push 0x5479e0
lea edx, [ebp - 0x20]
push edx
lea ecx, [ebp + 8]
mov byte [ebp - 4], 3
call fcn.004033b0
mov byte [ebp - 4], 4
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [ebx - 0x10]
cmp eax, esi
je 0x402bda
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x402bca
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x402bca
push eax
call fcn.00402160
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x402bc2
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [ebp - 0x14], ebx
jmp 0x402bd7
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x14]
call fcn.00401fe0
mov ebx, dword [ebp - 0x14]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402bfd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x5479e0
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x20]
push edx
call fcn.00403210
add esp, 0xc
mov byte [ebp - 4], 5
mov ecx, dword [eax]
mov esi, dword [ebp - 0x18]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x402c6d
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x402c60
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x402c60
push eax
call fcn.00402160
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x402c55
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x14]
jmp 0x402c6d
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x18]
call fcn.00401fe0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402c90
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x1c]
push ecx
push 0x5479e0
lea edx, [ebp - 0x20]
push edx
lea ecx, [ebp + 8]
call fcn.004033b0
mov byte [ebp - 4], 6
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [ebx - 0x10]
cmp eax, esi
je 0x402cfd
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x402ced
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x402ced
push eax
call fcn.00402160
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x402ce5
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [ebp - 0x14], ebx
jmp 0x402cfa
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x14]
call fcn.00401fe0
mov ebx, dword [ebp - 0x14]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402d20
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, 0x547768
mov eax, ebx
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x402d4d
test dx, dx
je 0x402d49
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x402d4d
add eax, 4
add ecx, 4
test dx, dx
jne 0x402d27
xor eax, eax
jmp 0x402d52
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
setne al
test al, al
je 0x402db6
mov eax, dword [ebx - 0xc]
push eax
push ebx
lea ecx, [ebp - 0x18]
call fcn.00403150
mov eax, dword [ebp - 0x18]
cmp dword [eax - 4], 1
jle 0x402d80
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [ebp - 0x18]
call fcn.00401e40
mov eax, dword [ebp - 0x18]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 1
push 0x5479e0
lea ecx, [ebp - 0x18]
call fcn.00403150
lea edx, [ebp - 0x1c]
push edx
push 0x5479e0
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp + 8]
call fcn.004033b0
mov byte [ebp - 4], 7
jmp 0x402ca9
mov dword [ebp - 4], 2
jmp 0x402ddb
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402dfe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402e1e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402e44
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4