Function at 0x4e37e4
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xe
push 0
push 0
dec ecx
jne 0x4e37ec
push ebx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4e4505
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
call sub.user32.dll_GetCursorPos
lea ecx, [ebp - 0x30]
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2fc]
call fcn.004678d8
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2fc]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
call fcn.0044931c
test ah, 2
je 0x4e430a
push 2
push 3
push 4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2fc]
call fcn.0044950c
mov edx, eax
mov ecx, 1
mov eax, dword [ebp - 4]
call fcn.004e32ec
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2fc]
call fcn.0044950c
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.004e4b30
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2fc]
mov eax, dword [eax + 0x26c]
mov edx, 1
call fcn.00448274
mov ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2fc]
call fcn.0044950c
cmp ebx, eax
je 0x4e396c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2fc]
mov eax, dword [eax + 0x26c]
mov edx, 0xa
call fcn.00448274
mov ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2fc]
call fcn.0044950c
cmp ebx, eax
je 0x4e396c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2fc]
mov eax, dword [eax + 0x26c]
mov edx, 8
call fcn.00448274
mov ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2fc]
call fcn.0044950c
cmp ebx, eax
je 0x4e396c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2fc]
mov eax, dword [eax + 0x26c]
mov edx, 6
call fcn.00448274
mov ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2fc]
call fcn.0044950c
cmp ebx, eax
je 0x4e396c
mov eax, dword [0x5037c4]
mov eax, dword [eax]
mov eax, dword [eax + 0x35c]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
jne 0x4e396c
mov eax, dword [0x5037c4]
mov eax, dword [eax]
mov eax, dword [eax + 0x35c]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2fc]
call fcn.0044950c
test eax, eax
je 0x4e3c30
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2fc]
call fcn.0044950c
mov edx, dword [eax + 8]
mov eax, dword [0x5037c4]
mov eax, dword [eax]
mov eax, dword [eax + 0x678]
call fcn.00404fcc
test eax, eax
jle 0x4e3c30
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2fc]
call fcn.0044950c
cmp dword [eax + 0x20], 7
je 0x4e3c30
mov eax, dword [ebp - 4]
cmp dword [eax + 0x310], 0
je 0x4e3a08
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x304]
xor edx, edx
call fcn.00467cb4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x304]
call fcn.004dadc4
lea edx, [ebp - 0x34]
call fcn.004096c0
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x310]
call fcn.00446c70
mov eax, dword [ebp - 4]
cmp dword [eax + 0x314], 0
je 0x4e3a4b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x308]
xor edx, edx
call fcn.00467cb4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x308]
call fcn.004dadc4
lea edx, [ebp - 0x38]
call fcn.004096c0
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x314]
call fcn.00446c70
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2fc]
call fcn.0044950c
mov eax, dword [eax + 8]
push eax
mov eax, dword [0x5037c4]
mov eax, dword [eax]
push dword [eax + 0x678]
push 0x4e451c
mov eax, dword [0x5037c4]
mov eax, dword [eax]
push dword [eax + 0x690]
push 0x4e4528
lea eax, [ebp - 0x3c]
mov edx, 4
call fcn.00404d48
mov edx, dword [ebp - 0x3c]
pop eax
call fcn.00404dd4
jne 0x4e3ab6
mov eax, dword [0x5037c4]
mov eax, dword [eax]
mov eax, dword [eax + 0x3bc]
call fcn.00404e88
push eax
call sub.KERNEL32.DLL_SetCurrentDirectoryA_1
jmp 0x4e3b41
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2fc]
call fcn.0044950c
mov edx, dword [eax + 8]
mov eax, 0x4e451c
call fcn.00404fcc
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2fc]
call fcn.0044950c
mov eax, dword [eax + 8]
call fcn.00404c88
mov ebx, eax
pop eax
sub ebx, eax
dec ebx
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2fc]
call fcn.0044950c
mov edx, dword [eax + 8]
mov eax, 0x4e451c
call fcn.00404fcc
inc eax
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2fc]
call fcn.0044950c
mov eax, dword [eax + 8]
mov ecx, ebx
pop edx
call fcn.00404ee8
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0x14]
call fcn.00409e40
mov eax, dword [ebp - 0x40]
call fcn.00404e88
push eax
call sub.KERNEL32.DLL_SetCurrentDirectoryA_1
xor eax, eax
push ebp
push 0x4e3bec
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x4e58a4]
call fcn.00480b74
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0xec]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x30c]
mov edx, dword [0x503b58]
mov edx, dword [edx]
call fcn.00404dd4
je 0x4e3ba0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2fc]
call fcn.0044950c
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 0x30c]
call fcn.00446c70
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x314], 0
jne 0x4e3bd6
mov eax, dword [0x5037c4]
mov eax, dword [eax]
mov eax, dword [eax + 0x35c]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
jne 0x4e3bd6
mov eax, dword [0x5037c4]
mov eax, dword [eax]
mov eax, dword [eax + 0x35c]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0x64]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e3bf3
mov eax, dword [ebp - 0x10]
call fcn.00403b94
ret
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2fc]
call fcn.0044950c
test eax, eax
je 0x4e4158
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2fc]
call fcn.0044950c
mov edx, dword [eax + 8]
mov eax, dword [0x5037c4]
mov eax, dword [eax]
mov eax, dword [eax + 0x658]
call fcn.00404fcc
test eax, eax
jle 0x4e4158
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2fc]
call fcn.0044950c
cmp dword [eax + 0x20], 7
je 0x4e4158
mov eax, dword [ebp - 4]
cmp dword [eax + 0x310], 0
je 0x4e3ccc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x304]
xor edx, edx
call fcn.00467cb4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x304]
call fcn.004dadc4
lea edx, [ebp - 0x44]
call fcn.004096c0
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x310]
call fcn.00446c70
mov eax, dword [ebp - 4]
cmp dword [eax + 0x314], 0
je 0x4e3d0f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x308]
xor edx, edx
call fcn.00467cb4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x308]
call fcn.004dadc4
lea edx, [ebp - 0x48]
call fcn.004096c0
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x314]
call fcn.00446c70
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2fc]
call fcn.0044950c
mov eax, dword [eax + 8]
push eax
mov eax, dword [0x5037c4]
mov eax, dword [eax]
push dword [eax + 0x658]
push 0x4e451c
mov eax, dword [0x5037c4]
mov eax, dword [eax]
push dword [eax + 0x65c]
push 0x4e4528
lea eax, [ebp - 0x4c]
mov edx, 4
call fcn.00404d48
mov edx, dword [ebp - 0x4c]
pop eax
call fcn.00404dd4
jne 0x4e3e49
xor eax, eax
push ebp
push 0x4e3e42
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x4e58a4]
call fcn.00480b74
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0xec]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x30c]
mov edx, dword [0x503b58]
mov edx, dword [edx]
call fcn.00404dd4
je 0x4e3df6
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x30c]
mov eax, 0x4e451c
call fcn.00404fcc
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x30c]
call fcn.00404c88
mov ebx, eax
pop eax
sub ebx, eax
dec ebx
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x30c]
mov eax, 0x4e451c
call fcn.00404fcc
mov edx, eax
inc edx
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x30c]
mov ecx, ebx
call fcn.00404ee8
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x314], 0
jne 0x4e3e2c
mov eax, dword [0x5037c4]
mov eax, dword [eax]
mov eax, dword [eax + 0x35c]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
jne 0x4e3e2c
mov eax, dword [0x5037c4]
mov eax, dword [eax]
mov eax, dword [eax + 0x35c]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0x64]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e3fa3
mov eax, dword [ebp - 0x10]
call fcn.00403b94
ret
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2fc]
call fcn.0044950c
mov edx, dword [eax + 8]
mov eax, 0x4e451c
call fcn.00404fcc
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2fc]
call fcn.0044950c
mov eax, dword [eax + 8]
call fcn.00404c88
mov ebx, eax
pop eax
sub ebx, eax
dec ebx
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2fc]
call fcn.0044950c
mov edx, dword [eax + 8]
mov eax, 0x4e451c
call fcn.00404fcc
inc eax
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2fc]
call fcn.0044950c
mov eax, dword [eax + 8]
mov ecx, ebx
pop edx
call fcn.00404ee8
xor eax, eax
push ebp
push 0x4e3f9c
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x4e58a4]
call fcn.00480b74
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0xec]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x30c]
mov edx, dword [0x503b58]
mov edx, dword [edx]
call fcn.00404dd4
je 0x4e3f50
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x30c]
mov eax, 0x4e451c
call fcn.00404fcc
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x30c]
call fcn.00404c88
mov ebx, eax
pop eax
sub ebx, eax
dec ebx
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x30c]
mov eax, 0x4e451c
call fcn.00404fcc
mov edx, eax
inc edx
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x30c]
mov ecx, ebx
call fcn.00404ee8
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x314], 0
jne 0x4e3f86
mov eax, dword [0x5037c4]
mov eax, dword [eax]
mov eax, dword [eax + 0x35c]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
jne 0x4e3f86
mov eax, dword [0x5037c4]
mov eax, dword [eax]
mov eax, dword [eax + 0x35c]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0x64]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e3fa3
mov eax, dword [ebp - 0x10]
call fcn.00403b94
ret
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2fc]
call fcn.0044950c
mov edx, dword [ebp - 4]
mov ebx, dword [edx + 0x310]
cmp eax, ebx
jne 0x4e41da
cmp dword [ebx + 0x20], 0xb
je 0x4e41da
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x304]
mov dl, 1
call fcn.00467cb4
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x310]
mov dl, 1
call fcn.00447ad4
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x4e41a9
cmp dword [ebp - 0x24], 0
je 0x4e41da
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x304]
xchg edx, eax
call fcn.00467504
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x304]
mov edx, dword [ebp - 0x24]
call fcn.00467528
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x304]
mov edx, dword [eax]
call dword [edx + 0xc4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2fc]
call fcn.0044950c
mov edx, dword [ebp - 4]
mov ebx, dword [edx + 0x314]
cmp eax, ebx
jne 0x4e425c
cmp dword [ebx + 0x20], 0xb
je 0x4e425c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x308]
mov dl, 1
call fcn.00467cb4
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x314]
mov dl, 1
call fcn.00447ad4
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x4e422b
cmp dword [ebp - 0x24], 0
je 0x4e425c
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x308]
xchg edx, eax
call fcn.00467504
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x308]
mov edx, dword [ebp - 0x24]
call fcn.00467528
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x308]
mov edx, dword [eax]
call dword [edx + 0xc4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2fc]
call fcn.0044950c
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x310]
je 0x4e42ac
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x304]
xor edx, edx
call fcn.00467cb4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x304]
call fcn.004dadc4
lea edx, [ebp - 0x5c]
call fcn.004096c0
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x310]
call fcn.00446c70
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2fc]
call fcn.0044950c
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x314]
je 0x4e42fc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x308]
xor edx, edx
call fcn.00467cb4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x308]
call fcn.004dadc4
lea edx, [ebp - 0x60]
call fcn.004096c0
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x314]
call fcn.00446c70
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2fc]
call fcn.00468308
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2fc]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
call fcn.0044931c
test ah, 2
jne 0x4e44dd
mov eax, dword [ebp - 4]
cmp dword [eax + 0x310], 0
je 0x4e43ce
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x304]
cmp byte [eax + 0x57], 1
jne 0x4e43ce
xor edx, edx
call fcn.00467cb4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x304]
call fcn.004dadc4
lea edx, [ebp - 0x64]
call fcn.004096c0
mov edx, dword [ebp - 0x64]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x310]
call fcn.00446c70
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x304]
call fcn.004dadc4
lea edx, [ebp - 0x68]
call fcn.004096c0
mov edx, dword [ebp - 0x68]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x310]
mov eax, dword [eax + 8]
call fcn.00404dd4
je 0x4e43ce
mov eax, dword [0x5037c4]
mov eax, dword [eax]
mov eax, dword [eax + 0x35c]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
jne 0x4e43ce
mov eax, dword [0x5037c4]
mov eax, dword [eax]
mov eax, dword [eax + 0x35c]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov eax, dword [ebp - 4]
cmp dword [eax + 0x314], 0
je 0x4e4475
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x308]
cmp byte [eax + 0x57], 1
jne 0x4e4475
xor edx, edx
call fcn.00467cb4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x308]
call fcn.004dadc4
lea edx, [ebp - 0x6c]
call fcn.004096c0
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x314]
call fcn.00446c70
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x308]
call fcn.004dadc4
lea edx, [ebp - 0x70]
call fcn.004096c0
mov edx, dword [ebp - 0x70]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x314]
mov eax, dword [eax + 8]
call fcn.00404dd4
je 0x4e4475
mov eax, dword [0x5037c4]
mov eax, dword [eax]
mov eax, dword [eax + 0x35c]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
jne 0x4e4475
mov eax, dword [0x5037c4]
mov eax, dword [eax]
mov eax, dword [eax + 0x35c]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov eax, dword [0x503c90]
cmp dword [eax], 0
je 0x4e44dd
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2fc]
mov eax, dword [eax + 0x26c]
mov edx, 5
call fcn.00448274
mov eax, dword [eax + 8]
call fcn.004097fc
mov edx, dword [0x503c90]
mov edx, dword [edx]
mov dword [edx + 0x33fb0], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2fc]
mov eax, dword [eax + 0x26c]
mov edx, 0xc
call fcn.00448274
mov eax, dword [eax + 8]
call fcn.004097fc
mov edx, dword [0x503c90]
mov edx, dword [edx]
mov dword [edx + 0x33fb4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e450c
lea eax, [ebp - 0x70]
mov edx, 0x10
call fcn.004049ec
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004049ec
ret