Function at 0x46b750
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x4d7da0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x513330]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x30]
mov ecx, dword [ebp]
lea eax, [esp + 0x30]
push eax
call fcn.00405a00
mov dword [esp + 0x28], 0
mov ecx, dword [ebp]
cmp dword [ecx - 0xc], 0
je 0x46b9cf
mov edx, dword [esp + 0x30]
mov esi, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
push edx
call esi
test eax, eax
jne 0x46b9cf
mov eax, dword [ebp]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jl 0x46b90b
push 0x4efc7c
push eax
call fcn.004a59da
add esp, 8
test eax, eax
je 0x46b90b
sub eax, dword [ebp]
sar eax, 1
mov edi, eax
cmp edi, 0xffffffff
je 0x46b90b
push ebp
mov eax, edi
xor ecx, ecx
lea edx, [esp + 0x20]
call fcn.0040b870
mov byte [esp + 0x28], 1
mov eax, dword [eax]
lea ecx, [esp + 0x14]
push ecx
mov ecx, eax
call fcn.00405a00
mov byte [esp + 0x28], 2
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x30]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x46b86a
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x46b859
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x46b859
call fcn.00408230
mov dword [esp + 0x18], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x46b84c
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x18]
add ecx, 0x10
mov dword [esp + 0x30], ecx
jmp 0x46b866
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x34]
call fcn.00405e30
mov ecx, dword [esp + 0x14]
lea eax, [ecx - 0x10]
mov byte [esp + 0x28], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46b88b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x28], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46b8b0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x30]
mov esi, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
push ecx
call esi
test eax, eax
jne 0x46b8d5
mov edx, dword [esp + 0x30]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x46b98e
mov ecx, dword [ebp]
mov edx, dword [ecx - 0xc]
lea eax, [edi + 1]
test eax, eax
jl 0x46b90b
cmp eax, edx
jg 0x46b90b
lea eax, [ecx + eax*2]
push 0x4efc7c
push eax
call fcn.004a59da
add esp, 8
test eax, eax
je 0x46b90b
sub eax, dword [ebp]
sar eax, 1
mov edi, eax
cmp edi, 0xffffffff
jne 0x46b7e6
mov ebp, dword [ebp]
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebp
call fcn.00405a00
lea eax, [esp + 0x14]
lea edi, [esp + 0x30]
mov byte [esp + 0x28], 3
call fcn.004082a0
mov byte [esp + 0x28], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46b951
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x30]
push ecx
call esi
test eax, eax
jne 0x46b9cf
mov edx, dword [esp + 0x30]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x46b9cf
lea eax, [esp + 0x30]
call fcn.00452320
mov eax, 7
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46b9b6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 7
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46b9f7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret