Function at 0x405829
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x561be8]
push esi
mov dword [ebp - 4], eax
call fcn.00405448
xor esi, esi
test eax, eax
je 0x40586c
push str._uac
push dword [ebp + 0x10]
call fcn.004a31f0
test eax, eax
pop ecx
pop ecx
je 0x4058a3
push 0x30
push 0x525cc8
push 0x525eb8
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp + 8]
push ebx
push eax
call fcn.0043be5c
pop ecx
pop ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [ebp + 8]
call fcn.00405301
call dword [sym.imp.KERNEL32.dll_GetTickCount]
call fcn.004050ae
test eax, eax
je 0x4058ad
or eax, 0xffffffff
jmp 0x405c27
call fcn.00405581
jmp 0x405c28
call fcn.00405799
test eax, eax
je 0x40589b
call fcn.004050fb
test eax, eax
je 0x40589b
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00518a62
mov edi, 0x563b08
mov ecx, edi
call fcn.0051803a
mov ecx, edi
call fcn.004053e3
push esi
push str.ResGameListTreeViewFill.xml
call fcn.004d6430
pop ecx
pop ecx
push eax
lea ecx, [ebp + 0x10]
call fcn.0040574e
lea eax, [ebp + 0x10]
push eax
call fcn.00438895
mov ecx, eax
call fcn.004386e8
lea ecx, [ebp + 0x10]
call fcn.00405301
push esi
push str.ResBaseRoomGameRoomTipBackground.xml
call fcn.004d6430
pop ecx
pop ecx
push eax
lea ecx, [ebp + 0x10]
call fcn.0040574e
lea eax, [ebp + 0x10]
push eax
call fcn.00438895
mov ecx, eax
call fcn.004386e8
lea ecx, [ebp + 0x10]
call fcn.00405301
push esi
push str.ResBaseRoomGameRoomTipDefaultFace.xml
call fcn.004d6430
pop ecx
pop ecx
push eax
lea ecx, [ebp + 0x10]
call fcn.0040574e
lea eax, [ebp + 0x10]
push eax
call fcn.00438895
mov ecx, eax
call fcn.004386e8
lea ecx, [ebp + 0x10]
call fcn.00405301
push esi
push str.reslobbygfx_systemtip.xml
call fcn.004d6430
pop ecx
pop ecx
push eax
lea ecx, [ebp + 0x10]
call fcn.0040574e
lea eax, [ebp + 0x10]
push eax
call fcn.00438895
mov ecx, eax
call fcn.004386e8
lea ecx, [ebp + 0x10]
call fcn.00405301
push esi
push str.reslobbygfx_fontsize.xml
call fcn.004d6430
pop ecx
pop ecx
push eax
lea ecx, [ebp + 0x10]
call fcn.0040574e
lea eax, [ebp + 0x10]
push eax
call fcn.00438895
mov ecx, eax
call fcn.004386e8
lea ecx, [ebp + 0x10]
call fcn.00405301
push esi
push str.reslobbygfx_tooltips.xml
call fcn.004d6430
pop ecx
pop ecx
push eax
lea ecx, [ebp + 0x10]
call fcn.0040574e
lea eax, [ebp + 0x10]
push eax
call fcn.00438895
mov ecx, eax
call fcn.004386e8
lea ecx, [ebp + 0x10]
call fcn.00405301
push esi
push str.reslobbygfxpreference.xml
call fcn.004d6430
pop ecx
pop ecx
push eax
lea ecx, [ebp + 0x10]
call fcn.0040574e
lea eax, [ebp + 0x10]
push eax
call fcn.00438895
mov ecx, eax
call fcn.004386e8
lea ecx, [ebp + 0x10]
call fcn.00405301
push esi
push str.reslobbygfxexitprompt.xml
call fcn.004d6430
pop ecx
pop ecx
push eax
lea ecx, [ebp + 0x10]
call fcn.0040574e
lea eax, [ebp + 0x10]
push eax
call fcn.00438895
mov ecx, eax
call fcn.004386e8
lea ecx, [ebp + 0x10]
call fcn.00405301
push esi
push str.resmsgdlgmessage.xml
call fcn.004d6430
pop ecx
pop ecx
push eax
lea ecx, [ebp + 0x10]
call fcn.0040574e
lea eax, [ebp + 0x10]
push eax
call fcn.00438895
mov ecx, eax
call fcn.004386e8
lea ecx, [ebp + 0x10]
call fcn.00405301
push esi
push str.resmsgdlg_funcbtns.xml
call fcn.004d6430
pop ecx
pop ecx
push eax
lea ecx, [ebp + 0x10]
call fcn.0040574e
lea eax, [ebp + 0x10]
push eax
call fcn.00438895
mov ecx, eax
call fcn.004386e8
lea ecx, [ebp + 0x10]
call fcn.00405301
push esi
push str.res_baseroomgameroom_setup.xml
call fcn.004d6430
pop ecx
pop ecx
push eax
lea ecx, [ebp + 0x10]
call fcn.0040574e
lea eax, [ebp + 0x10]
push eax
call fcn.00438895
mov ecx, eax
call fcn.004386e8
lea ecx, [ebp + 0x10]
call fcn.00405301
push ebx
call fcn.004d3f10
lea ecx, [ebp - 0x108]
push ecx
push eax
push str..Netlink2.dll
call fcn.004d6410
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, esi
mov dword [ebp - 0x10c], eax
je 0x405c24
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.BNLStartup
push eax
call edi
push str.BNLCleanup
push dword [ebp - 0x10c]
mov dword [0x566df0], eax
call edi
push str.BNLInterface
push dword [ebp - 0x10c]
mov dword [0x566df4], eax
call edi
mov dword [0x566df8], eax
call dword [0x566df0]
lea ecx, [ebp - 0x128]
call fcn.004d3ee0
push 0x1c
lea eax, [ebp - 0x128]
push esi
push eax
call fcn.004a2db0
add esp, 0xc
push esi
mov dword [ebp - 0x128], 1
mov dword [ebp - 0x124], esi
mov dword [ebp - 0x120], esi
call dword [sym.imp.ole32.dll_OleInitialize]
push ebx
call fcn.00441bcf
pop ecx
lea eax, [ebp - 0x128]
push eax
mov edi, 0x563ba8
push ebx
mov ecx, edi
call fcn.004cd520
test eax, eax
je 0x405be4
call fcn.0043b77d
push esi
push 0x1e9
push 0x23a
push 0x320
push 0x525d08
mov ecx, edi
call fcn.004cd5e0
mov ebx, eax
cmp ebx, esi
je 0x405bd7
push 1
push 0x1e
push esi
push esi
push ebx
mov ecx, edi
call fcn.004cf760
call fcn.0043b81b
push ebx
mov ecx, edi
call fcn.004ce920
mov ecx, edi
call fcn.004cd5a0
call dword [0x566df4]
call dword [sym.imp.ole32.dll_OleUninitialize]
mov eax, dword [0x563b00]
cmp eax, esi
je 0x405c07
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call fcn.00438895
mov ecx, eax
call fcn.0043810e
call fcn.00405152
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
pop esi
call fcn.004a2d97
leave
ret 0x10