Function at 0x48ffe0
Capabilities:
Set current directory

Disassembly:
mov eax, 0x195c
call fcn.004af840
mov eax, dword [0x4d8620]
xor eax, esp
mov dword [esp + 0x1958], eax
push ebx
mov ecx, 0x52dfe8
call fcn.00411850
mov bl, byte [esp + 0x1968]
mov dword [esp + 8], edx
test bl, bl
je 0x490035
and eax, 1
xor ecx, ecx
or eax, ecx
jne 0x490035
xor al, al
pop ebx
mov ecx, dword [esp + 0x1958]
xor ecx, esp
call fcn.004af00b
add esp, 0x195c
ret 0x10
push ebp
push esi
call fcn.00492390
mov ebp, eax
xor eax, eax
mov word [0x565a20], ax
call fcn.00486ac0
lea ecx, [esp + 0x14]
push ecx
mov ecx, 0x52dfe8
call fcn.00412ec0
push 0x400
push 0x5362aa
mov ecx, 0x52dfe8
call fcn.00412e90
mov edx, dword [esp + 0x94]
xor esi, esi
push 1
mov dword [0x53423c], edx
mov byte [0x53395a], bl
mov dword [0x533e1c], 1
mov dword [0x5338fc], esi
mov dword [0x533920], esi
call fcn.0048e380
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 0x5362aa
push 0x4c5d70
push 0x565a20
call fcn.0048f030
test bl, bl
je 0x4900e5
push 1
call fcn.0048fe30
test al, al
je 0x49040f
push edi
push 0x400
lea eax, [esp + 0x96c]
push eax
mov ecx, 0x52dfe8
call fcn.00412e70
cmp word [esp + 0x968], si
jne 0x490134
mov ecx, 0x52d6c0
call fcn.004448b0
mov ecx, 0x52d6c0
mov edi, eax
call fcn.00444910
cmp edi, eax
jne 0x490134
cmp dword [esp + 0x13c], esi
je 0x49013e
cmp byte [esp + 0x15d], 0
jne 0x49013e
cmp byte [esp + 0x1978], 0
je 0x4901aa
push esi
push 0x3ff
push esi
lea ecx, [esp + 0x174]
push ecx
mov ecx, dword [0x536aac]
call fcn.0046fdb0
test al, al
je 0x490195
mov ecx, 0x4c579c
lea eax, [esp + 0x168]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x490188
test dl, dl
je 0x490184
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x490188
add eax, 2
add ecx, 2
test dl, dl
jne 0x490168
xor eax, eax
jmp 0x49018d
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, esi
je 0x490237
mov ecx, dword [0x536aac]
push 0x4c579c
call fcn.0046fc70
jmp 0x490237
mov edx, dword [0x536aac]
push esi
push edx
mov ecx, 0x52d6c0
call fcn.00444ad0
test al, al
je 0x490327
mov eax, dword [0x536aac]
cmp dword [eax + 0x20], esi
jne 0x490237
xor eax, eax
movzx ecx, word [esp + eax + 0x968]
mov word [esp + eax + 0x168], cx
add eax, 2
cmp cx, si
jne 0x4901d0
cmp word [esp + 0x168], si
je 0x4901ff
lea ecx, [esp + 0x168]
push ecx
call fcn.00455790
lea edi, [esp + 0x168]
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x490210
mov edx, dword [0x4c5f34]
mov ecx, dword [0x536aac]
lea eax, [esp + 0x168]
push eax
mov dword [edi], edx
call fcn.0046fc90
cmp dword [esp + 0x13c], esi
je 0x4902b4
cmp byte [esp + 0x15d], 0
jne 0x4902b4
mov ecx, 0x52d6c0
call fcn.004448b0
mov esi, eax
test esi, esi
je 0x4902a4
cmp word [esp + 0x968], 0
jne 0x4902b4
mov ecx, 0x52d6c0
call fcn.00444910
cmp esi, eax
jne 0x4902b4
mov ecx, dword [0x527edc]
mov edx, dword [0x513900]
push 0x5362aa
push 0x48ef80
push ecx
push str.ASKPROCESSVOLDLG
push edx
call dword [sym.imp.USER32.dll_DialogBoxParamW]
cmp eax, 0xffffffff
je 0x490327
cmp eax, 1
jne 0x4902b4
mov ecx, dword [0x536aac]
push 0x4c579c
call fcn.0046fc70
xor eax, eax
mov word [esp + 0x1168], ax
cmp byte [esp + 0x1974], al
jne 0x49032e
cmp word [0x565a20], ax
je 0x49032e
cmp dword [0x533834], 4
je 0x49032e
push 0x400
lea ecx, [esp + 0x116c]
push ecx
call fcn.0048b200
push 0
push 0x565a20
call fcn.00432e40
push 0x565a20
call fcn.0048b1e0
test al, al
jne 0x49032e
push 0x565a20
push 0x1f7
call fcn.00466160
push eax
call fcn.00498840
add esp, 8
mov ecx, 0x513904
call fcn.00429940
xor al, al
jmp 0x49040e
movzx edx, byte [0x535243]
push 0
push edx
mov ecx, 0x52dfe8
call fcn.00417ad0
cmp word [esp + 0x1168], 0
je 0x49035b
lea eax, [esp + 0x1168]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
call fcn.00492390
cmp ebp, eax
jne 0x4903a0
cmp byte [0x526d88], 0
jne 0x4903a0
cmp byte [esp + 0x1974], 0
mov bl, 1
je 0x4903a4
push 0x40
push 0x3a7
call fcn.00466160
push eax
push 0x3a8
call fcn.00466160
mov ecx, dword [0x527edc]
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x4903d5
xor bl, bl
jmp 0x4903d5
cmp dword [0x535258], 0
je 0x4903d5
push 0x5362aa
call fcn.00432480
test al, al
jne 0x4903d5
mov ecx, 0x52d6c0
call fcn.00446c60
test al, al
je 0x4903d5
push 0
mov ecx, 0x52d6c0
call fcn.004473c0
mov ecx, 0x527ee0
mov byte [0x527f0c], 0
call fcn.0046f130
cmp byte [esp + 0x1974], 0
jne 0x49040c
cmp byte [0x526d88], 0
jne 0x49040c
cmp byte [0x565a1c], 0
je 0x49040c
push 0x565a20
call fcn.0048f270
mov al, bl
pop edi
mov ecx, dword [esp + 0x1964]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004af00b
add esp, 0x195c
ret 0x10