Function at 0x448050
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
push ebx
push esi
push edi
call fcn.00453730
mov ecx, dword [0x6962c8]
push 0x14
mov eax, dword [ecx]
call dword [eax + 0xc]
test eax, eax
je 0x4480c8
lea ecx, [eax + 4]
mov dword [eax], 1
mov eax, dword [0x6962b0]
lea ebx, [ecx - 4]
mov dword [ecx], 0
mov dword [ecx + 4], eax
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov edi, dword [ebx]
mov esi, edi
shl esi, 4
add esi, ecx
test edi, edi
je 0x4480bf
mov edx, dword [esi - 0x10]
lea esi, [esi - 0x10]
dec edi
test edx, edx
je 0x4480bb
mov ecx, dword [esi + 4]
push edx
mov eax, dword [ecx]
call dword [eax + 0x20]
test edi, edi
jne 0x4480a7
push ebx
call fcn.0044d750
add esp, 4
lea eax, [ebp - 0x21c]
push 0x104
push eax
call fcn.005bfe1e
lea eax, [ebp - 0x21c]
push eax
call fcn.0044fa70
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 1
push eax
push str.addpath
call fcn.00453220
mov ebx, eax
add esp, 0x18
test ebx, ebx
je 0x4481c3
nop dword [eax]
cmp byte [ebx], 0
je 0x4481a6
push 0x104
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.005d6d60
add esp, 0xc
cmp byte [ebx + 1], 0x3a
je 0x448155
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ebp + ecx - 0x21c]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x119], al
test al, al
jne 0x448140
mov esi, ebx
mov al, byte [ebx]
inc ebx
test al, al
jne 0x448157
lea edi, [ebp - 0x118]
sub ebx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x448167
mov ecx, ebx
lea eax, [ebp - 0x118]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call fcn.0044fa70
lea eax, [ebp - 0x118]
push eax
call fcn.0044fb40
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.00450190
add esp, 0x10
push 0
lea eax, [ebp - 4]
push eax
push str.addpath
call fcn.00453220
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x448110
push 0
push 0x5ff700
call fcn.00450190
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 1
push eax
push str.rootdir
call fcn.00453220
add esp, 0x14
test eax, eax
jne 0x448242
push 0x200
lea eax, [ebp - 0x61c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x44824b
lea ecx, [ebp - 0x61c]
lea eax, [ecx + eax*2]
cmp eax, ecx
jbe 0x44824b
movzx ecx, word [eax]
cmp ecx, 0x5c
je 0x44822e
cmp ecx, 0x2f
je 0x44822e
sub eax, 2
lea ecx, [ebp - 0x61c]
cmp eax, ecx
ja 0x448212
jmp 0x44824b
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
jmp 0x44824b
push eax
call fcn.005c0198
add esp, 4
push 0
push 0
push 0
push 1
push 0x6006c4
push str..gjupdater_log
call fcn.0049f3e0
add esp, 8
push eax
call fcn.0044ef10
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 1
push eax
push str.copy_log_to_stdout
call fcn.00453220
add esp, 0x20
test eax, eax
je 0x4482c0
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 1
push eax
push str.attach_parent_console
call fcn.00453220
add esp, 0xc
test eax, eax
je 0x4482af
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_AttachConsole]
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call fcn.004500a0
add esp, 4
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 1
push eax
push str.rdp_mode
call fcn.00453220
add esp, 0xc
test eax, eax
je 0x4482e7
mov al, 1
mov byte [0x698524], al
jmp 0x448316
push str.DAGOR_RDP_MODE
call fcn.005b2ce2
add esp, 4
test eax, eax
je 0x44830d
push eax
call fcn.005b2a09
add esp, 4
test eax, eax
setne al
mov byte [0x698524], al
jmp 0x448312
mov al, byte [0x698524]
test al, al
je 0x44833c
movzx eax, al
cdq
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push 1
push eax
push str.started_with_win32_rdp_compatible_mode_d
push 3
mov dword [ebp - 8], edx
mov dword [ebp - 0x14], 2
call fcn.0044dbd0
add esp, 0x10
mov eax, dword fs:[0x2c]
mov ecx, dword [0x6a3d5c]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x696274]
cmp eax, dword [ecx + 0x70]
jg 0x448383
call fcn.004536e0
cmp dword [ebp + 0xc], 0
setne al
movzx eax, al
push eax
push dword [ebp + 8]
call fcn.00447b50
add esp, 8
mov esi, eax
call fcn.0044d820
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x696274
call fcn.005b0623
add esp, 4
cmp dword [0x696274], 0xffffffff
jne 0x448358
mov ecx, 0x696270
call fcn.00453480
push 0x5fe700
call fcn.005b0412
push 0x696274
call fcn.005b05d9
add esp, 8
jmp 0x448358