Function at 0x489b70
Capabilities:
Set current directory

Disassembly:
mov eax, 0x195c
call fcn.004a4220
mov eax, dword [0x4ca3b0]
xor eax, esp
mov dword [esp + 0x1958], eax
push ebx
mov ecx, 0x4eeda0
call fcn.00411430
mov bl, byte [esp + 0x1968]
mov dword [esp + 8], edx
test bl, bl
je 0x489bc5
and eax, 1
xor ecx, ecx
or eax, ecx
jne 0x489bc5
xor al, al
pop ebx
mov ecx, dword [esp + 0x1958]
xor ecx, esp
call fcn.004a39f3
add esp, 0x195c
ret 0x10
push ebp
push esi
call fcn.0048bef0
mov ebp, eax
xor eax, eax
xor esi, esi
push esi
mov word [0x50f338], ax
call fcn.00480bc0
lea ecx, [esp + 0x14]
push ecx
mov ecx, 0x4eeda0
call fcn.00413040
push 0x400
push 0x4f7014
mov ecx, 0x4eeda0
call fcn.00413010
mov edx, dword [esp + 0x94]
push 1
mov dword [0x4f4fb4], edx
mov byte [0x4f46d2], bl
mov dword [0x4f4b94], 1
mov dword [0x4f4674], esi
mov dword [0x4f4698], esi
call fcn.00487fc0
cmp dword [esp + 0x138], esi
mov eax, dword [esp + 0x1978]
mov ebx, dword [esp + 0x196c]
push eax
setne cl
movzx edx, cl
push edx
push ebx
push 0x4f7014
push 0x4b8d0c
push 0x50f338
call fcn.00488c10
test bl, bl
je 0x489c76
push 1
call fcn.004899c0
test al, al
je 0x489fa8
push edi
push 0x400
lea eax, [esp + 0x96c]
push eax
mov ecx, 0x4eeda0
call fcn.00412ff0
cmp word [esp + 0x968], si
jne 0x489cc5
mov ecx, 0x4ee478
call fcn.0043ffe0
mov ecx, 0x4ee478
mov edi, eax
call fcn.00440040
cmp edi, eax
jne 0x489cc5
cmp dword [esp + 0x13c], esi
je 0x489ccf
cmp byte [esp + 0x15d], 0
jne 0x489ccf
cmp byte [esp + 0x1978], 0
je 0x489d42
push esi
push 0x3ff
push esi
lea ecx, [esp + 0x174]
push ecx
mov ecx, dword [0x4f7814]
call fcn.0046a6f0
test al, al
je 0x489d2d
mov ecx, 0x4b876c
lea eax, [esp + 0x168]
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x489d20
test dl, dl
je 0x489d1c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x489d20
add eax, 2
add ecx, 2
test dl, dl
jne 0x489d00
xor eax, eax
jmp 0x489d25
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, esi
je 0x489dd7
mov ecx, dword [0x4f7814]
push 0x4b876c
call fcn.0046a5b0
jmp 0x489dd7
mov edx, dword [0x4f7814]
push esi
push edx
mov ecx, 0x4ee478
call fcn.00440200
test al, al
je 0x489ec7
mov eax, dword [0x4f7814]
cmp dword [eax + 0x20], esi
jne 0x489dd7
xor eax, eax
jmp 0x489d70
movzx ecx, word [esp + eax + 0x968]
mov word [esp + eax + 0x168], cx
add eax, 2
cmp cx, si
jne 0x489d70
cmp word [esp + 0x168], si
je 0x489d9f
lea ecx, [esp + 0x168]
push ecx
call fcn.00450e70
lea edi, [esp + 0x168]
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x489db0
mov edx, dword [0x4b8eec]
mov ecx, dword [0x4f7814]
lea eax, [esp + 0x168]
push eax
mov dword [edi], edx
call fcn.0046a5d0
cmp dword [esp + 0x13c], esi
je 0x489e54
cmp byte [esp + 0x15d], 0
jne 0x489e54
mov ecx, 0x4ee478
call fcn.0043ffe0
mov esi, eax
test esi, esi
je 0x489e44
cmp word [esp + 0x968], 0
jne 0x489e54
mov ecx, 0x4ee478
call fcn.00440040
cmp esi, eax
jne 0x489e54
mov ecx, dword [0x4e8cd4]
mov edx, dword [0x4d56b0]
push 0x4f7014
push 0x488b60
push ecx
push str.ASKPROCESSVOLDLG
push edx
call dword [sym.imp.USER32.dll_DialogBoxParamW]
cmp eax, 0xffffffff
je 0x489ec7
cmp eax, 1
jne 0x489e54
mov ecx, dword [0x4f7814]
push 0x4b876c
call fcn.0046a5b0
xor eax, eax
mov word [esp + 0x1168], ax
cmp byte [esp + 0x1974], al
jne 0x489ece
cmp word [0x50f338], ax
je 0x489ece
cmp dword [0x4f45e0], 5
je 0x489ece
push 0x400
lea ecx, [esp + 0x116c]
push ecx
call fcn.00484e80
push 0
push 0x50f338
call fcn.00431c90
push 0x50f338
call fcn.00484e60
test al, al
jne 0x489ece
push 0x50f338
push 0x1f7
call fcn.00460760
push eax
call fcn.00492420
add esp, 8
mov ecx, 0x4d56b4
call fcn.00428c40
xor al, al
jmp 0x489fa7
push 0
push 0
mov ecx, 0x4eeda0
call fcn.00416120
cmp word [esp + 0x1168], 0
je 0x489ef5
lea edx, [esp + 0x1168]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
call fcn.0048bef0
cmp ebp, eax
jne 0x489f39
cmp byte [0x4e7b88], 0
jne 0x489f39
cmp byte [esp + 0x1974], 0
mov bl, 1
je 0x489f3d
push 0x40
push 0x3a7
call fcn.00460760
push eax
push 0x3a8
call fcn.00460760
push eax
mov eax, dword [0x4e8cd4]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x489f6e
xor bl, bl
jmp 0x489f6e
cmp dword [0x4f5fc8], 0
je 0x489f6e
push 0x4f7014
call fcn.00431440
test al, al
jne 0x489f6e
mov ecx, 0x4ee478
call fcn.004423b0
test al, al
je 0x489f6e
push 0
mov ecx, 0x4ee478
call fcn.00442a80
mov ecx, 0x4e8cd8
mov byte [0x4e8d04], 0
call fcn.00469bb0
cmp byte [esp + 0x1974], 0
jne 0x489fa5
cmp byte [0x4e7b88], 0
jne 0x489fa5
cmp byte [0x50f334], 0
je 0x489fa5
push 0x50f338
call fcn.00488e50
mov al, bl
pop edi
mov ecx, dword [esp + 0x1964]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004a39f3
add esp, 0x195c
ret 0x10