Function at 0x4164f3
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6e4
mov eax, dword [0x5a3604]
xor eax, esp
mov dword [esp + 0x6e0], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor esi, esi
mov dword [esp + 0x1c], ebx
push esi
mov dword [esp + 0x24], eax
call dword [sym.imp.ole32.dll_OleInitialize]
push 4
call fcn.0046cf9d
mov edi, eax
pop ecx
test edi, edi
je 0x41654a
mov eax, dword [0x5a3004]
mov ecx, edi
push 0x577db4
mov dword [edi], eax
call fcn.00408d6e
jmp 0x41654c
mov edi, esi
push 0x208
lea eax, [esp + 0x4e4]
push esi
push eax
call fcn.004f5300
add esp, 0xc
lea eax, [esp + 0x4e0]
push 0x208
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x4e0]
push 0x5c
push eax
call fcn.004f6546
add eax, 2
push 0x57506c
push eax
call fcn.00500195
add esp, 0x10
lea eax, [esp + 0x4e0]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea eax, [esp + 0x14]
mov dword [esp + 0x18], esi
push eax
mov dword [esp + 0x18], esi
call fcn.004f3e7a
pop ecx
lea eax, [esp + 0x18]
mov ecx, edi
push eax
call fcn.00416475
mov ecx, dword [esp + 0x14]
push dword [esp + 0x18]
mov eax, dword [ecx]
call dword [eax + 0x10]
push 0xe8
call fcn.0046cf9d
pop ecx
test eax, eax
je 0x416602
push esi
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], vtable.SOUI::SObjectDefaultRegister.0
push ecx
push str.SOUIHOST
push ebx
push dword [esp + 0x24]
mov ecx, eax
call fcn.0041a243
mov ebx, eax
jmp 0x416604
mov ebx, esi
lea eax, [esp + 0xc]
mov dword [esp + 0xc], esi
push eax
push esi
call fcn.0042c7a3
pop ecx
pop ecx
mov ecx, dword [esp + 0xc]
push esi
push dword [esp + 0x20]
mov eax, dword [ecx]
call dword [eax + 0xc]
push dword [esp + 0xc]
mov ecx, ebx
call fcn.0041e334
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x41663b
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [esp + 0x10]
mov dword [esp + 0x10], esi
push eax
push esi
call fcn.0042c7a3
pop ecx
pop ecx
mov ecx, dword [esp + 0x10]
push esi
push dword [esp + 0x20]
mov eax, dword [ecx]
call dword [eax + 0xc]
push 1
push 6
push str._name_start
mov ecx, ebx
call fcn.0041dff1
push str.uidef:xml_init
push dword [esp + 0x14]
lea ecx, [ebx + 0x10]
call fcn.004188ad
lea ecx, [esp + 0x28]
call fcn.0040ce4c
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea ecx, [esp + 0x3c]
call fcn.00428d73
push esi
push esi
push 0x110
push dword [esp + 0x27c]
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [esp + 0x270]
lea ecx, [esp + 0x268]
call fcn.00416bff
push dword [esp + 0x20]
lea ecx, [esp + 0x4cc]
call fcn.004024f3
cmp dword [esp + 0x4d8], 0x14
jbe 0x41670c
push esi
push dword [esp + 0x274]
call dword [sym.imp.USER32.dll_ShowWindow]
sub esp, 0x18
lea eax, [esp + 0x4e0]
mov ecx, esp
push eax
mov dword [ecx], esi
mov dword [ecx + 0x10], esi
mov dword [ecx + 0x14], esi
call fcn.00402603
lea ecx, [esp + 0x40]
call fcn.0040d6d5
jmp 0x41672b
push 1
push dword [esp + 0x274]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esp + 0x270]
mov ecx, ebx
call fcn.0041fe24
mov esi, eax
lea ecx, [esp + 0x4c8]
call fcn.0040258a
lea ecx, [esp + 0x28]
call fcn.0040d077
test ebx, ebx
je 0x41674c
mov eax, dword [ebx]
mov ecx, ebx
push 1
call dword [eax]
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x416759
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x416766
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x416773
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x416788
mov ecx, edi
call fcn.004167a7
push 4
push edi
call fcn.004e6456
pop ecx
pop ecx
call dword [sym.imp.ole32.dll_OleUninitialize]
mov ecx, dword [esp + 0x6ec]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004e5fe9
mov esp, ebp
pop ebp
ret 0x10