Function at 0x46cb60
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x6db5ad
push eax
mov eax, 0x402c
mov dword fs:[0], esp
call fcn.00551d10
mov edx, dword [ebp + 8]
mov eax, 0x6e7a86
push ebx
test edx, edx
mov dword [ebp - 0x30], 0
mov ecx, eax
mov dword [ebp - 0x24], 0x4000000
cmovne ecx, edx
mov dword [ebp - 0x30], 0
push esi
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0x4000000
push edi
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov byte [ebp - 0x21], 4
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 4], 0
xor edi, edi
mov edx, dword [ebp + 0xc]
test edx, edx
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
cmovne eax, edx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], 0x4000000
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0x4000000
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x18], edi
mov byte [ebp - 0x11], 4
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 1
push 4
push edi
push edi
push ecx
mov byte [ebp - 0x23], 1
call fcn.0054df30
mov esi, eax
mov ecx, 2
mul ecx
mov ecx, 0xffffffff
cmovb eax, ecx
push eax
call fcn.005519f1
push edi
mov ebx, eax
push esi
mov dword [ebp - 0x2c], ebx
mov esi, dword [ebp - 0x34]
push ebx
push esi
call fcn.0054df30
add esp, 0x24
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test ebx, ebx
jne 0x46cca5
push 4
push ebx
push ebx
push esi
mov byte [ebp - 0x23], 1
call fcn.0054df30
mov esi, eax
mov ecx, 2
mul ecx
mov ecx, 0xffffffff
cmovb eax, ecx
push eax
call fcn.005519f1
push edi
mov ebx, eax
push esi
mov dword [ebp - 0x2c], ebx
push ebx
push dword [ebp - 0x34]
call fcn.0054df30
add esp, 0x24
push 0
push 0x2200000
push 3
push 0
push 0
push 0xc0000008
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
push esi
push str.CreateFileW_for_directory__08p_n
mov dword [ebp - 0x34], esi
call fcn.0053b630
add esp, 8
cmp esi, 0xffffffff
jne 0x46ccf6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 8]
push str.Unable_to_open__s:__d_n
call fcn.0053b630
add esp, 0xc
mov byte [ebp + 0xb], 0
jmp 0x46cf02
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x10]
push dword [ebp + 0xc]
push 0x6ed894
push eax
call fcn.0049ff60
add esp, 0xc
lea ecx, [ebp - 0x10]
push 0x6e8574
call fcn.0049fe30
test al, al
jne 0x46cd6b
mov edi, dword [ebp - 0x10]
test edi, edi
jne 0x46cf71
call fcn.0053aa60
mov ecx, eax
push edi
push dword [ebp - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov dword [ebp - 0x10], edi
call fcn.0053aa60
push edi
mov ecx, eax
push edi
push 0x22f
push str.C:_buildworker_steam_rel_client_win32_build_srcpublic_tier1utlstring.h
mov eax, dword [ecx]
push 2
call dword [eax + 8]
mov dword [ebp - 0x10], eax
mov byte [eax], 0x5c
mov eax, dword [ebp - 0x10]
mov byte [eax + 1], 0
mov esi, dword [ebp - 0x10]
mov edi, 0x6e7a86
mov dword [ebp - 0x20], 0
test esi, esi
mov dword [ebp - 0x14], 0x4000000
mov eax, edi
mov dword [ebp - 0x1c], 0
cmovne eax, esi
mov dword [ebp - 0x18], 0
test eax, eax
mov dword [ebp - 0x20], eax
push 0x3ffc
cmovne edi, eax
mov byte [ebp - 0x11], 4
lea eax, [ebp - 0x4034]
mov dword [ebp + 8], edi
push 0
push eax
mov dword [ebp - 0x20], edi
call fcn.00554100
push 4
push 0
push 0
push edi
mov dword [ebp - 0x4038], 0xa0000003
mov byte [ebp - 0x13], 1
call fcn.0054df30
mov esi, eax
mov ecx, 2
mul ecx
mov ecx, 0xffffffff
cmovb eax, ecx
push eax
call fcn.005519f1
push 0
mov edi, eax
push esi
mov dword [ebp - 0x1c], edi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.0054df30
push 0x208
lea eax, [ebp - 0x4028]
push edi
push eax
call fcn.0054bd40
add esp, 0x3c
test edi, edi
jne 0x46ce50
push 4
push edi
push edi
push esi
mov byte [ebp - 0x13], 1
call fcn.0054df30
mov esi, eax
mov ecx, 2
mul ecx
mov ecx, 0xffffffff
cmovb eax, ecx
push eax
call fcn.005519f1
push 0
mov edi, eax
push esi
mov dword [ebp - 0x1c], edi
push edi
push dword [ebp + 8]
call fcn.0054df30
add esp, 0x24
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46ce55
sub ecx, edx
sar ecx, 1
add ecx, ecx
push str.Attaching_reparse_point_n
mov word [ebp - 0x402e], cx
lea eax, [ecx + 2]
mov word [ebp - 0x402c], ax
movzx eax, cx
add eax, 0xc
mov dword [ebp - 0x4034], eax
call fcn.0053b630
mov esi, dword [ebp - 0x34]
lea eax, [ebp - 0x38]
add esp, 4
mov dword [ebp - 0x38], 0
push 0
push eax
mov eax, dword [ebp - 0x4034]
push 0
push 0
add eax, 8
push eax
lea eax, [ebp - 0x4038]
push eax
push 0x900a4
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [ebp + 8], eax
test eax, eax
jne 0x46cedc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.junction_ioctl_failed:__d_n
call fcn.0053b630
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 8], 0
setne byte [ebp + 0xb]
mov byte [ebp - 4], 1
call fcn.0053aa60
push 0
push dword [ebp - 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
mov ecx, eax
call edx
mov byte [ebp - 4], 0
cmp byte [ebp - 0x13], 0
je 0x46cf15
push edi
call fcn.005519fa
add esp, 4
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0x4000000
mov dword [ebp - 4], 0xffffffff
push ebx
call fcn.005519fa
mov al, byte [ebp + 0xb]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
pop edi
pop esi
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0x4000000
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x46cf74
sub edi, ecx
lea esi, [edi + 2]
cmp esi, 0x7fff0000
jbe 0x46cf8d
call fcn.0049fe10
call fcn.0053aa60
push 0
mov ecx, eax
push 0
push 0x26e
push str.C:_buildworker_steam_rel_client_win32_build_srcpublic_tier1utlstring.h
mov eax, dword [ecx]
push esi
call dword [eax + 8]
push edi
push dword [ebp - 0x10]
mov esi, eax
push esi
call fcn.00553b80
add esp, 0xc
mov word [edi + esi], 0x5c
call fcn.0053aa60
mov ecx, eax
push 0
push dword [ebp - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov dword [ebp - 0x10], esi
jmp 0x46cd6e