Function at 0x41a340
Capabilities:
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x431d0c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x19c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1b8]
push edi
push esi
lea ecx, [esp + 0x28]
call fcn.0040f610
push 0x5c
push 0x2f
lea ecx, [esp + 0x2c]
mov dword [esp + 0x1bc], 0
call fcn.0040f200
lea ecx, [esp + 0x10]
call fcn.00410430
lea ecx, [esp + 0x64]
mov byte [esp + 0x1b4], 1
call fcn.00411d20
lea ecx, [esp + 0x40]
mov byte [esp + 0x1b4], 2
call fcn.0040f6e0
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x40]
mov byte [esp + 0x1b4], 3
push eax
push ecx
push edx
call fcn.0041ab80
mov eax, dword [esp + 0x54]
add esp, 0xc
lea ecx, [esp + 0x64]
push 0
push eax
call fcn.00419c80
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x10]
push 0
push ecx
push edx
push eax
lea ecx, [esp + 0x74]
call fcn.00419d90
test al, al
jne 0x41a413
mov ecx, dword [esp + 0x1c0]
push ecx
push esi
call fcn.00411860
jmp 0x41a60c
push 0
lea ecx, [esp + 0x14]
call fcn.00410860
push 0
lea ecx, [esp + 0x14]
call fcn.00410860
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x41a65c
push 0x104
lea eax, [esp + 0xac]
push esi
push eax
call fcn.00427cd0
mov cl, byte [esp + 0xb4]
add esp, 0xc
test cl, cl
lea eax, [esp + 0xa8]
je 0x41a474
cmp byte [eax], 0x2f
jne 0x41a46c
mov byte [eax], 0x5c
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x41a464
lea ecx, [esp + 0xa8]
push 0x3a
push ecx
call fcn.00427be0
mov ebx, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x41a528
mov dl, byte [ebp + 1]
inc ebp
lea edi, [esp + 0xa8]
or ecx, 0xffffffff
xor eax, eax
mov byte [ebp], 0
repne scasb al, byte es:[edi]
not ecx
lea esi, [esp + 0x58]
sub edi, ecx
mov eax, ecx
mov dword [esp + 0x3c], esi
mov esi, edi
mov edi, dword [esp + 0x3c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x439478
or ecx, 0xffffffff
mov byte [ebp], dl
lea edx, [esp + 0x58]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x58]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebx
test eax, eax
jne 0x41a52f
mov esi, dword [esp + 0x1c0]
test esi, esi
je 0x41a56c
mov edx, dword [esi]
push str.Failed_to_set_directory_to_root_directory
mov ecx, esi
call dword [edx + 0x10]
mov eax, dword [esi]
lea ecx, [esp + 0x58]
push ecx
jmp 0x41a562
lea ebp, [esp + 0xa8]
cmp byte [ebp], 0x5c
jne 0x41a5bb
push 0x439478
call ebx
test eax, eax
jne 0x41a5ba
mov esi, dword [esp + 0x1c0]
test esi, esi
je 0x41a56c
mov edx, dword [esi]
push str.Failed_to_set_directory_to_root_directory
mov ecx, esi
call dword [edx + 0x10]
mov eax, dword [esi]
push 0x439478
push str.directory
mov ecx, esi
call dword [eax + 0x2c]
lea ecx, [esp + 0x40]
mov byte [esp + 0x1b4], 2
call fcn.0040f750
lea ecx, [esp + 0x64]
mov byte [esp + 0x1b4], 1
call fcn.00411de0
lea ecx, [esp + 0x10]
mov byte [esp + 0x1b4], 0
call fcn.00410720
lea ecx, [esp + 0x24]
mov dword [esp + 0x1b4], 0xffffffff
call fcn.0040f750
xor eax, eax
jmp 0x41a6a8
inc ebp
mov ebx, dword [esp + 0x1c0]
cmp byte [ebp], 0
je 0x41a65c
push 0x5c
push ebp
call fcn.00427be0
mov esi, eax
add esp, 8
test esi, esi
je 0x41a605
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
mov byte [esi], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x41a600
push ebx
push ebp
call fcn.0041a030
add esp, 8
test eax, eax
je 0x41a56c
lea ebp, [esi + 1]
jmp 0x41a5c2
push ebx
push ebp
call fcn.0041a030
add esp, 8
lea ecx, [esp + 0x40]
mov esi, eax
mov byte [esp + 0x1b4], 2
call fcn.0040f750
lea ecx, [esp + 0x64]
mov byte [esp + 0x1b4], 1
call fcn.00411de0
lea ecx, [esp + 0x10]
mov byte [esp + 0x1b4], 0
call fcn.00410720
lea ecx, [esp + 0x24]
mov dword [esp + 0x1b4], 0xffffffff
call fcn.0040f750
mov eax, esi
jmp 0x41a6a8
lea ecx, [esp + 0x40]
mov byte [esp + 0x1b4], 2
call fcn.0040f750
lea ecx, [esp + 0x64]
mov byte [esp + 0x1b4], 1
call fcn.00411de0
lea ecx, [esp + 0x10]
mov byte [esp + 0x1b4], 0
call fcn.00410720
lea ecx, [esp + 0x24]
mov dword [esp + 0x1b4], 0xffffffff
call fcn.0040f750
mov eax, 1
mov ecx, dword [esp + 0x1ac]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1a8
ret