Function at 0x49b548
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe6c
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x194], edx
mov dword [ebp - 0x18c], edx
mov dword [ebp - 0x190], edx
mov dword [ebp - 0x188], edx
mov dword [ebp - 0x184], edx
mov dword [ebp - 0x180], edx
mov dword [ebp - 0x17c], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x178]
mov edx, dword [0x407cbc]
call fcn.00404548
xor eax, eax
push ebp
push 0x49bacf
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [0x4c2d78], eax
xor eax, eax
mov dword [0x4c2d74], eax
mov byte [ebp - 0x1a], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x710]
mov dl, byte [eax + 0x1f5]
mov byte [ebp - 5], dl
mov dl, 2
call fcn.0046a714
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x710]
call fcn.004726b4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x710]
mov eax, dword [eax + 0x20c]
call fcn.00468adc
mov eax, dword [0x4c2bd4]
call fcn.00479800
test al, al
jne 0x49b624
lea ecx, [ebp - 0x17c]
mov edx, dword [0x4c2bf8]
mov eax, dword [ebp - 4]
call fcn.0049c8f8
mov edx, dword [ebp - 0x17c]
mov eax, 0x4c2bd4
call fcn.00403d48
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x53c]
cmp byte [eax + 0x2c], 0
je 0x49b657
lea eax, [ebp - 0x180]
mov ecx, dword [0x4c2bd4]
mov edx, 0x49bae8
call fcn.00403fc0
mov edx, dword [ebp - 0x180]
mov eax, dword [ebp - 4]
call fcn.004a8ce8
lea eax, [ebp - 0x184]
mov ecx, 0x49bb00
mov edx, dword [0x4c2bd4]
call fcn.00403fc0
mov eax, dword [ebp - 0x184]
lea ecx, [ebp - 0x178]
mov edx, 0x3f
call fcn.0040905c
mov ebx, eax
test ebx, ebx
jne 0x49b870
test byte [ebp - 0x170], 0x10
jne 0x49b6ac
mov eax, dword [ebp - 0x16c]
mov edx, 0x49bb0c
call fcn.00404084
je 0x49b6ac
xor eax, eax
jmp 0x49b6ae
mov al, 1
mov byte [ebp - 0x19], al
mov eax, dword [ebp - 0x16c]
mov edx, 0x49bb18
call fcn.00404084
je 0x49b85b
mov eax, dword [ebp - 0x16c]
mov edx, 0x49bb0c
call fcn.00404084
jne 0x49b6e9
mov eax, dword [ebp - 4]
call fcn.00494e64
test al, al
jne 0x49b85b
mov ecx, dword [0x4c2d6c]
mov edx, dword [ebp - 0x16c]
mov eax, dword [ebp - 4]
call fcn.004ad2f8
test al, al
jne 0x49b71e
cmp byte [ebp - 0x19], 0
je 0x49b85b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x588]
cmp byte [eax + 0x2c], 0
jne 0x49b85b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x710]
mov eax, dword [eax + 0x20c]
call fcn.0046896c
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x16c]
mov eax, dword [ebp - 0x20]
call fcn.00468440
xor eax, eax
push ebp
push 0x49b77b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x178]
call fcn.004093a0
add esp, 0xfffffff8
fstp qword [esp]
wait
lea eax, [ebp - 0xc]
mov edx, dword [0x4c2d8c]
call fcn.0040ae24
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49b78d
cmp byte [ebp - 0x19], 0
je 0x49b7db
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 8]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [ebp - 0x16c]
mov edx, 0x49bb0c
call fcn.00404084
je 0x49b7c9
inc dword [0x4c2d74]
mov ecx, 1
xor edx, edx
mov eax, dword [ebp - 0x20]
call fcn.004685e4
jmp 0x49b83c
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0x20]
call fcn.004685e4
mov byte [ebp - 0x1a], 1
jmp 0x49b83c
mov eax, dword [ebp - 0x144]
xor edx, edx
mov edx, eax
xor eax, eax
push edx
push eax
mov eax, dword [ebp - 0x140]
xor edx, edx
or eax, dword [esp]
or edx, dword [esp + 4]
add esp, 8
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
fild qword [ebp - 0x18]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea eax, [ebp - 0x188]
call fcn.00493eb8
mov edx, dword [ebp - 0x188]
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 8]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov ecx, 3
xor edx, edx
mov eax, dword [ebp - 0x20]
call fcn.004685e4
inc dword [0x4c2d78]
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x10], 0
jne 0x49b84d
lea eax, [ebp - 0xc]
call fcn.00403cf4
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x34]
lea eax, [ebp - 0x178]
call fcn.004090ac
mov ebx, eax
test ebx, ebx
je 0x49b68d
lea eax, [ebp - 0x178]
call fcn.004090d0
cmp byte [0x4c2c90], 0
je 0x49b8e6
mov eax, dword [0x4c2bd4]
call fcn.00403f74
cmp eax, 3
jle 0x49b8e6
cmp byte [ebp - 0x1a], 0
jne 0x49b8e6
mov eax, dword [ebp - 4]
call fcn.00494e64
test al, al
jne 0x49b8e6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x710]
mov eax, dword [eax + 0x20c]
call fcn.0046896c
mov ebx, eax
mov edx, 0x49bb0c
mov eax, ebx
call fcn.00468440
mov eax, dword [ebx + 8]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [ebx + 8]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x34]
xor ecx, ecx
xor edx, edx
mov eax, ebx
call fcn.004685e4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x710]
call fcn.004726e8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x710]
mov dl, byte [ebp - 5]
call fcn.0046a714
cmp byte [0x4c2c4e], 0
je 0x49b92c
mov eax, dword [0x4c2bcc]
cmp byte [eax + 0x47], 0
je 0x49b92c
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x710]
xor ecx, ecx
mov eax, dword [ebp - 4]
call fcn.0049b3b4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x710]
call fcn.004726c8
mov eax, dword [ebp - 4]
call fcn.0049bda0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x53c]
cmp byte [eax + 0x2c], 0
je 0x49ba77
mov eax, dword [ebp - 4]
call fcn.00494e64
test al, al
jne 0x49ba77
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x710]
mov eax, dword [eax + 0x20c]
call fcn.004689e8
mov esi, eax
dec esi
test esi, esi
jl 0x49ba5b
inc esi
xor ebx, ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x710]
mov eax, dword [eax + 0x20c]
mov edx, ebx
call fcn.00468a18
cmp dword [eax + 0x10], 3
jne 0x49ba12
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x710]
mov eax, dword [eax + 0x20c]
mov edx, ebx
call fcn.00468a18
push dword [eax + 0x24]
push 0x49bb24
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x710]
mov eax, dword [eax + 0x20c]
mov edx, ebx
call fcn.00468a18
mov eax, dword [eax + 8]
lea ecx, [ebp - 0x190]
xor edx, edx
mov edi, dword [eax]
call dword [edi + 0xc]
push dword [ebp - 0x190]
push 0x49bb30
lea eax, [ebp - 0x18c]
mov edx, 4
call fcn.00404034
mov edx, dword [ebp - 0x18c]
mov eax, dword [ebp - 4]
call fcn.004a8ce8
jmp 0x49ba53
push 0x49bb3c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x710]
mov eax, dword [eax + 0x20c]
mov edx, ebx
call fcn.00468a18
push dword [eax + 0x24]
push 0x49bb48
lea eax, [ebp - 0x194]
mov edx, 3
call fcn.00404034
mov edx, dword [ebp - 0x194]
mov eax, dword [ebp - 4]
call fcn.004a8ce8
inc ebx
dec esi
jne 0x49b987
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x53c]
cmp byte [eax + 0x2c], 0
je 0x49ba77
mov edx, 0x49bb54
mov eax, dword [ebp - 4]
call fcn.004a8ce8
mov eax, dword [0x4c2bd4]
call fcn.00404138
push eax
call sub.kernel32.dll_SetCurrentDirectoryA_1
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x710]
mov eax, dword [ebp - 4]
call fcn.00494f4c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49bad6
lea eax, [ebp - 0x194]
mov edx, 7
call fcn.00403d18
lea eax, [ebp - 0x178]
mov edx, dword [0x407cbc]
call fcn.00404614
lea eax, [ebp - 0xc]
call fcn.00403cf4
ret