Function at 0x414fb0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54c070
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5ad1b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x58e378
lea ecx, [ebp - 0x14]
call fcn.00410d30
mov dword [ebp - 4], 0
mov edx, 0x58e378
mov eax, dword [ebp - 0x14]
mov cx, word [eax]
cmp cx, word [edx]
jne 0x41501c
test cx, cx
je 0x415018
mov cx, word [eax + 2]
cmp cx, word [edx + 2]
jne 0x41501c
add eax, 4
add edx, 4
test cx, cx
jne 0x414ff6
xor eax, eax
jmp 0x415021
sbb eax, eax
or eax, 1
test eax, eax
sete al
or edi, 0xffffffff
test al, al
je 0x415065
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
call fcn.00414ca0
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.004104e0
mov byte [ebp - 4], 0
mov ecx, edi
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x415065
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x58e378
lea ecx, [ebp - 0x10]
call fcn.00410d30
xor ebx, ebx
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], ebx
mov esi, 1
mov eax, dword [ebp - 0x14]
test esi, esi
js 0x4150aa
cmp esi, dword [eax - 0xc]
jg 0x4150aa
lea eax, [eax + esi*2]
push 0x58df74
push eax
call fcn.005318ee
mov esi, eax
add esp, 8
test esi, esi
je 0x4150aa
sub esi, dword [ebp - 0x14]
sar esi, 1
jmp 0x4150ad
or esi, 0xffffffff
inc esi
lea eax, [ebp - 0x20]
push esi
push eax
lea ecx, [ebp - 0x14]
call fcn.0040ff90
mov byte [ebp - 4], 3
mov ecx, dword [eax]
mov edi, dword [ebp - 0x10]
add edi, 0xfffffff0
lea edx, [ecx - 0x10]
cmp edx, edi
je 0x415117
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x415108
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x415108
push edx
call fcn.00410550
add esp, 4
mov dword [ebp - 0x1c], eax
or ecx, 0xffffffff
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x415100
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x1c]
add eax, 0x10
mov dword [ebp - 0x10], eax
jmp 0x415114
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00410be0
mov ebx, dword [ebp - 0x18]
mov byte [ebp - 4], 2
or edi, 0xffffffff
mov edx, dword [ebp - 0x20]
mov ecx, edi
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41513a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x10]
mov eax, 0x58e378
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x415168
test dx, dx
je 0x415164
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x415168
add ecx, 4
add eax, 4
test dx, dx
jne 0x415142
xor eax, eax
jmp 0x41516d
sbb eax, eax
or eax, 1
test eax, eax
setne al
test al, al
je 0x4151a0
push 0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41519b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4151a0
cmp eax, 3
je 0x4151a0
mov ebx, eax
jmp 0x41519d
xor ebx, ebx
mov dword [ebp - 0x18], ebx
test esi, esi
jg 0x415080
mov byte [ebp - 4], 0
mov ecx, edi
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4151c8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x14]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x4151e9
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
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