Function at 0x40b8d0
Capabilities:
Hide graphical window
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x734cc6
mov eax, dword fs:[0]
push eax
sub esp, 0x604
mov eax, dword [0x82384c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.005796b0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x208
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push 0x5c
push eax
call fcn.005788f8
add esp, 8
xor ecx, ecx
mov word [eax + 2], cx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 4
call fcn.004fb4f9
mov esi, eax
add esp, 4
test esi, esi
je 0x40b97d
mov ecx, dword [0x823004]
mov dword [esi], ecx
mov ecx, esi
push 0x7f0d5c
call fcn.00405b60
jmp 0x40b97f
xor esi, esi
lea eax, [ebp - 0x608]
mov dword [ebp - 0x60c], 0
push eax
mov dword [ebp - 0x608], 0
call fcn.004fa6df
add esp, 4
lea eax, [ebp - 0x60c]
mov ecx, esi
push eax
call fcn.0040b780
mov ecx, dword [ebp - 0x608]
push dword [ebp - 0x60c]
mov eax, dword [ecx]
call dword [eax + 0x10]
push 0xe8
call fcn.004fb4f9
add esp, 4
test eax, eax
je 0x40b9fc
push 0
lea ecx, [ebp - 0x610]
mov dword [ebp - method.SOUI::SObjectDefaultRegister.virtual_0], vtable.SOUI::SObjectDefaultRegister.0
push ecx
push str.SOUIHOST
push ebx
push dword [ebp - 0x608]
mov ecx, eax
call fcn.0046944d
mov edi, eax
jmp 0x40b9fe
xor edi, edi
lea eax, [ebp - 0x604]
mov dword [ebp - 0x604], 0
push eax
push 0
call fcn.00482c93
mov ecx, dword [ebp - 0x604]
add esp, 8
mov eax, dword [ecx]
push 0
push ebx
call dword [eax + 0xc]
push str.uidef:xml_init
push dword [ebp - 0x604]
lea ecx, [edi + 0x10]
call fcn.004674cc
lea ecx, [ebp - 0x600]
call fcn.00403f20
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea ecx, [ebp - 0x600]
call fcn.0047ed10
push 0
push 0
push 0x110
push dword [ebp - 0x3b8]
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [ebp - 0x3b8]
lea ecx, [ebp - 0x3c4]
call fcn.0046245c
push 1
push dword [ebp - 0x3b8]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 0x3b8]
mov ecx, edi
call fcn.00470742
lea ecx, [ebp - 0x600]
mov ebx, eax
call fcn.00404010
test edi, edi
je 0x40bab9
mov edx, dword [edi]
mov ecx, edi
push 1
call dword [edx]
mov ecx, dword [ebp - 0x604]
test ecx, ecx
je 0x40bac8
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x608]
test ecx, ecx
je 0x40bad7
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x60c]
test ecx, ecx
je 0x40bae6
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x40bb1d
mov dword [ebp - 4], 0
mov edi, dword [esi]
sub edi, 0xc
cmp edi, dword [section..data]
je 0x40bb12
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40bb12
push edi
call fcn.0046230d
add esp, 4
push 4
push esi
call fcn.004fb533
add esp, 8
call dword [sym.imp.ole32.dll_OleUninitialize]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fb522
mov esp, ebp
pop ebp
ret 0x10