Function at 0x486690
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1ac
mov eax, dword [0x4e26d0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
mov dword [ebp - 0x19c], 0
call fcn.00488260
lea eax, [ebp - 0x18c]
push eax
call fcn.00486cb0
add esp, 8
test al, al
jne 0x4866d8
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049653f
mov esp, ebp
pop ebp
ret
call fcn.0048c5c0
call fcn.0048cff0
test al, al
je 0x4866c7
call fcn.0048cef0
push eax
call fcn.00486a80
add esp, 4
test al, al
je 0x4866c7
call fcn.00486b50
mov byte [0x4e5158], al
call fcn.0048b0b0
call fcn.00489090
call fcn.0048e960
mov ecx, eax
call fcn.0048ea60
test al, al
je 0x4866c7
push esi
mov esi, dword [ebp - 0x18c]
lea ecx, [ebp - 0x198]
push esi
mov dword [ebp - 0x198], 0
mov dword [ebp - 0x194], 0
mov dword [ebp - 0x190], 0
call fcn.0048e970
test al, al
je 0x486771
push esi
push 0x4c7090
push str._s_u
lea eax, [ebp - 0x9c]
push 0x26
push eax
call fcn.00496ff5
add esp, 0x14
test eax, eax
jg 0x48678e
lea ecx, [ebp - 0x198]
call fcn.004862f0
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049653f
mov esp, ebp
pop ebp
ret
xor eax, eax
push edi
mov word [ebp - 0x52], ax
lea eax, [ebp - 0x9c]
push eax
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenEventW]
push eax
lea ecx, [ebp - 0x188]
call fcn.004861d0
mov edi, dword [ebp - 0x188]
test edi, edi
je 0x48698b
cmp edi, 0xffffffff
je 0x48698b
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x4c70cc
push str._s_u
lea eax, [ebp - 0x50]
push 0x26
push eax
call fcn.00496ff5
add esp, 0x14
test eax, eax
jle 0x48698b
xor eax, eax
mov word [ebp - 6], ax
call fcn.0048cfc0
cmp dword [eax + 0x14], 8
jb 0x486803
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x48698b
xorps xmm0, xmm0
mov dword [ebp - 0x1ac], 0
xor esi, esi
movq qword [ebp - 0x1a8], xmm0
push ebx
mov dword [ebp - 0x18c], 0
mov dword [ebp - 0x1a0], esi
call fcn.00455d10
mov ebx, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp eax, 3
jl 0x48689e
lea eax, [ebp - 0x19c]
push eax
call fcn.00486d70
add esp, 4
lea ecx, [ebp - 0x1a0]
push eax
call fcn.004860a0
mov eax, dword [ebp - 0x19c]
test eax, eax
je 0x486872
push eax
call ebx
mov esi, dword [ebp - 0x1a0]
lea eax, [ebp - 0x1ac]
mov dword [ebp - 0x1ac], 0xc
mov dword [ebp - 0x1a8], esi
mov dword [ebp - 0x1a4], 0
mov dword [ebp - 0x18c], eax
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0xb4]
call fcn.004053f4
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x4863c0
push 0
push 0
push dword [ebp - 0x18c]
lea eax, [ebp - 0xb4]
push eax
lea ecx, [ebp - 0x184]
call fcn.004b7f20
lea ecx, [ebp - 0xb4]
call fcn.0040544a
lea ecx, [ebp - 0x184]
call fcn.004b8df0
test al, al
jne 0x486932
lea ecx, [ebp - 0x184]
call fcn.004b8140
test esi, esi
je 0x486908
push esi
call ebx
lea ecx, [ebp - 0x188]
call fcn.00486660
lea ecx, [ebp - 0x198]
call fcn.004862f0
pop ebx
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049653f
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea ecx, [ebp - 0x188]
call fcn.00486660
call fcn.0048e960
mov ecx, eax
call fcn.0048ebb0
lea ecx, [ebp - 0x184]
call fcn.004b8140
test esi, esi
je 0x486962
push esi
call ebx
lea ecx, [ebp - 0x188]
call fcn.00486660
lea ecx, [ebp - 0x198]
call fcn.004862f0
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049653f
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x188]
call fcn.00486660
lea ecx, [ebp - 0x198]
call fcn.004862f0
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
xor ecx, ebp
pop esi
call fcn.0049653f
mov esp, ebp
pop ebp
ret