Function at 0x409250
Capabilities:
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x415808
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x41a0e8]
xor eax, esp
mov dword [esp + 0x5c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x41a0e8]
xor eax, esp
push eax
lea eax, [esp + 0x74]
mov dword fs:[0], eax
mov eax, dword [esp + 0x84]
mov esi, ecx
push str.Program_
lea ecx, [esp + 0x18]
push esi
push ecx
mov dword [esp + 0x3c], eax
call fcn.00409180
mov ebx, 8
add esp, 0xc
cmp dword [eax + 0x18], ebx
jb 0x4092b1
mov eax, dword [eax + 4]
jmp 0x4092b4
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp dword [esp + 0x2c], ebx
jb 0x4092ce
mov edx, dword [esp + 0x18]
push edx
call fcn.0040b2af
add esp, 4
push str.programlibexpat.dll
lea eax, [esp + 0x3c]
push esi
push eax
call fcn.00409180
add esp, 0xc
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x7c], 0
cmp dword [esp + 0x50], ebx
jae 0x4092f7
lea eax, [esp + 0x3c]
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call edi
push str.programlibpng13.dll
lea ecx, [esp + 0x18]
push esi
push ecx
call fcn.00409180
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x88], 1
call fcn.00407700
mov byte [esp + 0x7c], 0
cmp dword [esp + 0x2c], ebx
jb 0x409341
mov edx, dword [esp + 0x18]
push edx
call fcn.0040b2af
add esp, 4
mov eax, dword [esp + 0x3c]
cmp dword [esp + 0x50], ebx
jae 0x40934f
lea eax, [esp + 0x3c]
push eax
call edi
push str.programXLFSIO.dll
lea eax, [esp + 0x18]
push esi
push eax
call fcn.00409180
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x88], 2
call fcn.00407700
mov byte [esp + 0x7c], 0
cmp dword [esp + 0x2c], ebx
jb 0x409393
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0040b2af
add esp, 4
mov eax, dword [esp + 0x3c]
cmp dword [esp + 0x50], ebx
jae 0x4093a1
lea eax, [esp + 0x3c]
push eax
call edi
push str.programXLGraphic.dll
lea edx, [esp + 0x18]
push esi
push edx
call fcn.00409180
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x88], 3
call fcn.00407700
mov byte [esp + 0x7c], 0
cmp dword [esp + 0x2c], ebx
jb 0x4093e5
mov eax, dword [esp + 0x18]
push eax
call fcn.0040b2af
add esp, 4
mov eax, dword [esp + 0x3c]
cmp dword [esp + 0x50], ebx
jae 0x4093f3
lea eax, [esp + 0x3c]
push eax
call edi
push str.programXLLuaRuntime.dll
lea ecx, [esp + 0x18]
push esi
push ecx
call fcn.00409180
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x88], 4
call fcn.00407700
mov byte [esp + 0x7c], 0
cmp dword [esp + 0x2c], ebx
jb 0x409437
mov edx, dword [esp + 0x18]
push edx
call fcn.0040b2af
add esp, 4
mov eax, dword [esp + 0x3c]
cmp dword [esp + 0x50], ebx
jae 0x409445
lea eax, [esp + 0x3c]
push eax
call edi
push str.programXLUE.dll
lea eax, [esp + 0x18]
push esi
push eax
call fcn.00409180
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x88], 5
call fcn.00407700
mov byte [esp + 0x7c], 0
cmp dword [esp + 0x2c], ebx
jb 0x409489
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0040b2af
add esp, 4
mov eax, dword [esp + 0x3c]
cmp dword [esp + 0x50], ebx
jae 0x409497
lea eax, [esp + 0x3c]
push eax
call edi
push str.programzlib1.dll
lea edx, [esp + 0x18]
push esi
push edx
call fcn.00409180
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x88], 6
call fcn.00407700
mov byte [esp + 0x7c], 0
cmp dword [esp + 0x2c], ebx
jb 0x4094db
mov eax, dword [esp + 0x18]
push eax
call fcn.0040b2af
add esp, 4
mov eax, dword [esp + 0x3c]
cmp dword [esp + 0x50], ebx
jae 0x4094e9
lea eax, [esp + 0x3c]
push eax
call edi
push str.programXLNetAccSetupUI.dll
lea ecx, [esp + 0x18]
push esi
push ecx
call fcn.00409180
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x88], 7
call fcn.00407700
mov byte [esp + 0x7c], 0
cmp dword [esp + 0x2c], ebx
jb 0x40952d
mov edx, dword [esp + 0x18]
push edx
call fcn.0040b2af
add esp, 4
mov eax, dword [esp + 0x3c]
cmp dword [esp + 0x50], ebx
jae 0x40953b
lea eax, [esp + 0x3c]
push eax
call edi
mov edi, eax
test edi, edi
je 0x4095fa
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Runs
push edi
call ebp
push str.ReleaseUI
push edi
mov dword [esp + 0x3c], eax
call ebp
mov edi, dword [esp + 0x34]
xor ebp, ebp
mov dword [esi + 0x3c], eax
cmp edi, ebp
je 0x4095fa
xor eax, eax
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], ebp
mov word [esp + 0x58], ax
lea ecx, [esp + 0x54]
push ecx
mov ecx, esi
mov byte [esp + 0x80], bl
call fcn.00408df0
mov eax, dword [esp + 0x58]
cmp dword [esp + 0x6c], ebx
jae 0x4095a7
lea eax, [esp + 0x58]
cmp dword [esi + 0x18], ebx
jb 0x4095b1
mov esi, dword [esi + 4]
jmp 0x4095b4
add esi, 4
mov edx, dword [esp + 0x30]
push edx
push eax
push esi
call edi
cmp dword [esp + 0x6c], ebx
jb 0x4095d0
mov eax, dword [esp + 0x58]
push eax
call fcn.0040b2af
add esp, 4
xor ecx, ecx
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], ebp
mov word [esp + 0x58], cx
cmp dword [esp + 0x50], ebx
jb 0x4095f6
mov edx, dword [esp + 0x3c]
push edx
call fcn.0040b2af
add esp, 4
mov al, 1
jmp 0x40960f
cmp dword [esp + 0x50], ebx
jb 0x40960d
mov eax, dword [esp + 0x3c]
push eax
call fcn.0040b2af
add esp, 4
xor al, al
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.0040b9b9
add esp, 0x6c
ret 4