Function at 0x41d6d7
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6e4
mov eax, dword [0x65a640]
xor eax, esp
mov dword [esp + 0x6e0], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push esi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], eax
call dword [sym.imp.ole32.dll_OleInitialize]
push 4
call fcn.00484e40
pop ecx
test eax, eax
je 0x41d723
push ecx
mov ecx, eax
call fcn.0041d5bc
mov ebx, eax
jmp 0x41d725
mov ebx, esi
push 0x208
lea eax, [esp + 0x4e4]
push esi
push eax
call fcn.005423a0
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.00541abd
pop ecx
pop ecx
xor ecx, ecx
mov word [eax + 2], cx
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.0053ffb9
pop ecx
lea eax, [esp + 0x18]
mov ecx, ebx
push eax
call fcn.0041d5ec
mov ecx, dword [esp + 0x14]
push dword [esp + 0x18]
mov eax, dword [ecx]
call dword [eax + 0x10]
push 0xe8
call fcn.00484e40
pop ecx
test eax, eax
je 0x41d7d2
push esi
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], vtable.SOUI::SObjectDefaultRegister.0
push ecx
push str.SOUIHOST
push edi
push dword [esp + 0x24]
mov ecx, eax
call fcn.00422107
mov edi, eax
jmp 0x41d7d4
mov edi, esi
lea eax, [esp + 0xc]
mov dword [esp + 0xc], esi
push eax
push esi
call fcn.00438420
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, edi
call fcn.00427bb2
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x41d80b
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [esp + 0x10]
mov dword [esp + 0x10], esi
push eax
push esi
call fcn.00438420
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, edi
call fcn.00427845
push str.uidef:xml_init
push dword [esp + 0x14]
lea ecx, [edi + 0x10]
call fcn.00420076
lea ecx, [esp + 0x28]
call fcn.006e4083
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea ecx, [esp + 0x3c]
call fcn.004342ff
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.0041dfba
push dword [esp + 0x20]
lea ecx, [esp + 0x4cc]
call fcn.0040309e
cmp dword [esp + 0x4d8], 0x14
jbe 0x41d8d4
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
call fcn.004030dd
lea ecx, [esp + 0x40]
call fcn.006e95bb
jmp 0x41d8f3
push 1
push dword [esp + 0x274]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esp + 0x270]
mov ecx, edi
call fcn.00429822
mov esi, eax
lea ecx, [esp + 0x4c8]
call fcn.0040329b
lea ecx, [esp + 0x28]
call fcn.0070fd0c
test edi, edi
je 0x41d914
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x41d921
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x41d92e
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x41d93b
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
je 0x41d950
mov ecx, ebx
call fcn.0041d987
push 4
push ebx
call fcn.0052f3f1
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.0052ef51
mov esp, ebp
pop ebp
ret 0x10