Function at 0x41ed6d
Capabilities:
Set current directory

Disassembly:
push 0x444
mov eax, 0x457adc
call fcn.0044730c
xor eax, eax
push 0x208
mov word [ebp - 0x424], ax
xor edi, edi
lea eax, [ebp - 0x422]
push edi
push eax
call fcn.00427b40
add esp, 0xc
push 0x105
lea eax, [ebp - 0x424]
push eax
push dword [0x466004]
call fcn.0042ee15
test eax, eax
je 0x41edd8
lea eax, [ebp - 0x424]
push eax
push 0x104
mov esi, str.Unknown
push esi
call fcn.0042250d
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
xor eax, eax
push 0x1f4
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x206]
push edi
push eax
call fcn.00427b40
mov esi, 0x40e120
push esi
push 0xfb
lea eax, [ebp - 0x208]
push eax
mov ebx, 0x40df5c
push ebx
push 0x40e058
push 0x40e030
call fcn.0044680b
push 0x1f6
push edi
push 0x4648b0
call fcn.00427b40
lea eax, [ebp - 0x208]
push eax
mov edi, 0xfa
push edi
push 0x4648b0
call fcn.0042250d
xor eax, eax
push 0x1f4
push eax
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x206]
push eax
call fcn.00427b40
add esp, 0x48
push esi
push 0xfb
lea eax, [ebp - 0x208]
push eax
push ebx
push 0x40e03c
push 0x40e030
call fcn.0044680b
push 0x1f6
push 0
push 0x4644c0
call fcn.00427b40
lea eax, [ebp - 0x208]
push eax
push edi
push 0x4644c0
call fcn.0042250d
xor eax, eax
push 0x1f4
push eax
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x206]
push eax
call fcn.00427b40
push esi
push 0xfb
lea eax, [ebp - 0x208]
push eax
push ebx
push 0x40e0d8
push 0x40e030
call fcn.0044680b
add esp, 0x54
push 0x1f6
push 0
push 0x4646b8
call fcn.00427b40
lea eax, [ebp - 0x208]
push eax
push edi
push 0x4646b8
call fcn.0042250d
xor eax, eax
mov word [ebp - 0x218], ax
push 0x206
xor edi, edi
lea eax, [ebp - 0x216]
push edi
push eax
call fcn.00427b40
add esp, 0x24
xor eax, eax
push 0x40e074
lea ecx, [ebp - 0x440]
mov dword [ebp - 0x42c], 7
mov dword [ebp - 0x430], edi
mov word [ebp - 0x440], ax
call fcn.00410cec
mov dword [ebp - 4], edi
push esi
push 0x105
mov edi, 0x467240
push edi
push ebx
push 0x40e088
push 0x40e090
call fcn.0044680b
mov eax, edi
add esp, 0x18
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x41ef6d
sub eax, ecx
sar eax, 1
xor ecx, ecx
cmp eax, ecx
jbe 0x41f054
mov dword [ebp - 0x44c], ecx
mov dword [ebp - 0x448], ecx
mov dword [ebp - 0x444], ecx
mov byte [ebp - 4], 1
push 0x2001f
push 0x40df98
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x44c]
call fcn.004108fc
test eax, eax
jne 0x41f045
push 0x208
push eax
mov word [ebp - 0x424], ax
lea eax, [ebp - 0x422]
push eax
call fcn.00427b40
add esp, 0xc
push 0x40dfe4
lea eax, [ebp - 0x44c]
push eax
lea edi, [ebp - 0x450]
lea esi, [ebp - 0x424]
mov dword [ebp - 0x450], 0x105
call fcn.0041c948
test eax, eax
jne 0x41f03b
mov eax, esi
push 0x40f948
push eax
call fcn.004235e0
pop ecx
pop ecx
test eax, eax
je 0x41f03b
xor ecx, ecx
mov word [eax], cx
mov eax, esi
push eax
call fcn.00422e89
pop ecx
cmp eax, 5
jl 0x41f03b
push 0x40e0c0
lea ecx, [ebp - 0x440]
call fcn.00410cec
mov edi, 0x467240
mov esi, 0x40e120
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44c]
call fcn.00410952
cmp dword [ebp - 0x42c], 8
mov eax, dword [ebp - 0x440]
jae 0x41f069
lea eax, [ebp - 0x440]
push esi
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push ebx
push eax
push 0x40e090
call fcn.0044680b
lea eax, [ebp - 0x218]
add esp, 0x18
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x41f08e
sub eax, ecx
sar eax, 1
je 0x41f0ba
push edi
call fcn.00413535
lea eax, [ebp - 0x218]
push eax
push 0x105
push edi
call fcn.00422675
add esp, 0xc
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x440]
call fcn.0041103b
call fcn.0044739e
ret