Function at 0x490f10
Capabilities:
Set current directory

Disassembly:
mov eax, 0x195c
call fcn.004b0000
mov eax, dword [0x4d98f0]
xor eax, esp
mov dword [esp + 0x1958], eax
push ebx
mov ecx, 0x5219d0
call fcn.00411b10
mov bl, byte [esp + 0x1968]
mov dword [esp + 8], edx
test bl, bl
je 0x490f65
and eax, 1
xor ecx, ecx
or eax, ecx
jne 0x490f65
xor al, al
pop ebx
mov ecx, dword [esp + 0x1958]
xor ecx, esp
call fcn.004affec
add esp, 0x195c
ret 0x10
push ebp
push esi
call fcn.004932d0
mov ebp, eax
xor eax, eax
xor esi, esi
push esi
mov word [0x53e518], ax
call fcn.004878e0
lea ecx, [esp + 0x14]
push ecx
mov ecx, 0x5219d0
call fcn.00413240
push 0x400
push 0x529c92
mov ecx, 0x5219d0
call fcn.00413210
mov edx, dword [esp + 0x94]
push 1
mov dword [0x527c24], edx
mov byte [0x527342], bl
mov dword [0x527804], 1
mov dword [0x5272e4], esi
mov dword [0x527308], esi
call fcn.0048f2e0
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 0x529c92
push 0x4c6d80
push 0x53e518
call fcn.0048ff90
test bl, bl
je 0x491016
push 1
call fcn.00490d60
test al, al
je 0x49134f
push edi
push 0x400
lea eax, [esp + 0x96c]
push eax
mov ecx, 0x5219d0
call fcn.004131f0
cmp word [esp + 0x968], si
jne 0x491065
mov ecx, 0x5210a8
call fcn.00446100
mov ecx, 0x5210a8
mov edi, eax
call fcn.00446160
cmp edi, eax
jne 0x491065
cmp dword [esp + 0x13c], esi
je 0x49106f
cmp byte [esp + 0x15d], 0
jne 0x49106f
cmp byte [esp + 0x1978], 0
je 0x4910e2
push esi
push 0x3ff
push esi
lea ecx, [esp + 0x174]
push ecx
mov ecx, dword [0x52a494]
call fcn.00470520
test al, al
je 0x4910cd
mov ecx, 0x4c67ac
lea eax, [esp + 0x168]
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4910c0
test dl, dl
je 0x4910bc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4910c0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4910a0
xor eax, eax
jmp 0x4910c5
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, esi
je 0x491177
mov ecx, dword [0x52a494]
push 0x4c67ac
call fcn.004703e0
jmp 0x491177
mov edx, dword [0x52a494]
push esi
push edx
mov ecx, 0x5210a8
call fcn.00446320
test al, al
je 0x491267
mov eax, dword [0x52a494]
cmp dword [eax + 0x20], esi
jne 0x491177
xor eax, eax
jmp 0x491110
movzx ecx, word [esp + eax + 0x968]
mov word [esp + eax + 0x168], cx
add eax, 2
cmp cx, si
jne 0x491110
cmp word [esp + 0x168], si
je 0x49113f
lea ecx, [esp + 0x168]
push ecx
call fcn.00455810
lea edi, [esp + 0x168]
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x491150
mov edx, dword [0x4c6f44]
mov ecx, dword [0x52a494]
lea eax, [esp + 0x168]
push eax
mov dword [edi], edx
call fcn.00470400
cmp dword [esp + 0x13c], esi
je 0x4911f4
cmp byte [esp + 0x15d], 0
jne 0x4911f4
mov ecx, 0x5210a8
call fcn.00446100
mov esi, eax
test esi, esi
je 0x4911e4
cmp word [esp + 0x968], 0
jne 0x4911f4
mov ecx, 0x5210a8
call fcn.00446160
cmp esi, eax
jne 0x4911f4
mov ecx, dword [0x51b8cc]
mov edx, dword [0x5072f0]
push 0x529c92
push 0x48fee0
push ecx
push str.ASKPROCESSVOLDLG
push edx
call dword [sym.imp.USER32.dll_DialogBoxParamW]
cmp eax, 0xffffffff
je 0x491267
cmp eax, 1
jne 0x4911f4
mov ecx, dword [0x52a494]
push 0x4c67ac
call fcn.004703e0
xor eax, eax
mov word [esp + 0x1168], ax
cmp byte [esp + 0x1974], al
jne 0x49126e
cmp word [0x53e518], ax
je 0x49126e
cmp dword [0x52721c], 4
je 0x49126e
push 0x400
lea ecx, [esp + 0x116c]
push ecx
call fcn.0048c120
push 0
push 0x53e518
call fcn.00435fc0
push 0x53e518
call fcn.0048c100
test al, al
jne 0x49126e
push 0x53e518
push 0x1f7
call fcn.00466860
push eax
call fcn.004997e0
add esp, 8
mov ecx, 0x5072f4
call fcn.0042caa0
xor al, al
jmp 0x49134e
movzx edx, byte [0x528c2b]
push 0
push edx
mov ecx, 0x5219d0
call fcn.00417d90
cmp word [esp + 0x1168], 0
je 0x49129b
lea eax, [esp + 0x1168]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
call fcn.004932d0
cmp ebp, eax
jne 0x4912e0
cmp byte [0x51a778], 0
jne 0x4912e0
cmp byte [esp + 0x1974], 0
mov bl, 1
je 0x4912e4
push 0x40
push 0x3a7
call fcn.00466860
push eax
push 0x3a8
call fcn.00466860
mov ecx, dword [0x51b8cc]
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x491315
xor bl, bl
jmp 0x491315
cmp dword [0x528c40], 0
je 0x491315
push 0x529c92
call fcn.00435620
test al, al
jne 0x491315
mov ecx, 0x5210a8
call fcn.00448480
test al, al
je 0x491315
push 0
mov ecx, 0x5210a8
call fcn.00448c00
mov ecx, 0x51b8d0
mov byte [0x51b8fc], 0
call fcn.0046f8a0
cmp byte [esp + 0x1974], 0
jne 0x49134c
cmp byte [0x51a778], 0
jne 0x49134c
cmp byte [0x53e514], 0
je 0x49134c
push 0x53e518
call fcn.004901c0
mov al, bl
pop edi
mov ecx, dword [esp + 0x1964]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004affec
add esp, 0x195c
ret 0x10