Function at 0x4143a0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42217b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x490
mov eax, dword [0x42c17c]
push ebx
push esi
push edi
push 4
mov dword [esp + 0x498], eax
call fcn.004155ce
add esp, 4
mov dword [esp + 0x10], eax
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x4a4], ebx
je 0x4143f6
mov ecx, eax
call fcn.0040d8a0
mov esi, eax
jmp 0x4143f8
xor esi, esi
mov ecx, esi
mov dword [esp + 0x4a4], 0xffffffff
call fcn.0040d8b0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 0x30], 1
mov eax, dword [esi]
cmp eax, ebx
je 0x414460
push str.XL_PrepareGraphicParam
push eax
call edi
cmp eax, ebx
je 0x414431
lea ecx, [esp + 0x30]
push ecx
call eax
mov eax, dword [esi]
cmp eax, ebx
je 0x414460
push str.XL_InitGraphicLib
push eax
call edi
cmp eax, ebx
je 0x41444a
lea edx, [esp + 0x30]
push edx
call eax
mov esi, dword [esi]
cmp esi, ebx
je 0x414460
push str.XL_SetFreeTypeEnabled
push esi
call edi
cmp eax, ebx
je 0x414460
push 1
call eax
push 4
call fcn.004155ce
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebx
mov dword [esp + 0x4a4], 1
je 0x41448c
mov ecx, eax
call fcn.0040d8a0
mov esi, eax
mov dword [esp + 0x18], esi
jmp 0x414492
mov dword [esp + 0x18], ebx
mov esi, ebx
mov ecx, esi
mov dword [esp + 0x4a4], 0xffffffff
call fcn.0040d8f0
mov eax, dword [esi]
cmp eax, ebx
je 0x4144b9
push str.XLUE_InitLoader
push eax
call edi
cmp eax, ebx
je 0x4144b9
push ebx
call eax
push 0x104
lea eax, [esp + 0x284]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x428008
lea ecx, [esp + 0x284]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, dword [esi]
cmp eax, ebx
je 0x4144fc
push str.XLUE_AddXARSearchPath
push eax
call edi
cmp eax, ebx
je 0x4144fc
lea edx, [esp + 0x280]
push edx
call eax
call fcn.004030e0
mov edi, eax
mov eax, dword [edi]
push str.XLLRT_GetEnv
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x414540
push ebx
call eax
mov esi, eax
cmp esi, ebx
je 0x41453c
push esi
call fcn.00410450
mov ecx, dword [edi]
add esp, 4
push str.XLLRT_ReleaseEnv
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x41453c
push esi
call eax
mov esi, dword [esp + 0x18]
mov eax, dword [esi]
cmp eax, ebx
je 0x414561
push str.XLUE_LoadXAR
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x414561
push str.CommonCtrl
call eax
mov esi, eax
jmp 0x414564
or esi, 0xffffffff
push str.InitXLUE
call fcn.00406b70
add esp, 4
test eax, eax
jne 0x4145c7
push esi
push str.load_commonCtrl_ret:
push ebx
push str.InitXLUE
call fcn.0040a9c0
add esp, 8
mov ecx, eax
call fcn.0040d020
mov ecx, eax
call fcn.004101e0
push 1
mov esi, eax
push ebx
mov dword [0x42d048], ebx
mov edx, dword [esi + 0x240]
push ebx
push edx
push 1
mov ecx, esi
mov dword [esi + 0x248], ebx
call fcn.0040af90
add esi, 0xc
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call esi
jmp 0x4145cd
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 4
call fcn.004155ce
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebx
mov dword [esp + 0x4a4], 2
je 0x4145f9
mov ecx, eax
call fcn.004031c0
mov edi, eax
mov dword [esp + 0x10], edi
jmp 0x4145ff
mov dword [esp + 0x10], ebx
mov edi, ebx
mov ecx, edi
mov dword [esp + 0x4a4], 0xffffffff
call fcn.0040d880
test eax, eax
je 0x41494e
mov eax, dword [edi]
cmp eax, ebx
je 0x414631
push str.XLFS_Init
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x414631
call eax
xor eax, eax
mov word [esp + 0x70], bx
mov ecx, 0x82
lea edi, [esp + 0x72]
rep stosd dword es:[edi], eax
push 0x105
lea eax, [esp + 0x74]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ecx, dword [0x42c054]
mov dword [esp + 0x1c], ecx
lea edx, [esp + 0x70]
push edx
lea eax, [esp + 0x20]
push str.xar_resource:___s100101_
push eax
mov dword [esp + 0x4b0], 3
call fcn.00411160
push str.InitXLUE
call fcn.00406b70
add esp, 0x10
test eax, eax
jne 0x4146dc
mov ecx, dword [esp + 0x1c]
push ecx
push str.mount_dir:
push ebx
push str.InitXLUE
call fcn.0040a9c0
add esp, 8
mov ecx, eax
call fcn.0040dcf0
mov ecx, eax
call fcn.0040dcf0
push 1
mov edi, eax
push ebx
mov dword [0x42d048], ebx
mov edx, dword [edi + 0x240]
push ebx
push edx
push 1
mov ecx, edi
mov dword [edi + 0x248], ebx
call fcn.0040af90
add edi, 0xc
push edi
call esi
push str...Uninstall
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
cmp eax, ebx
je 0x414718
push str.XLFS_MountDir
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x414718
mov edx, dword [esp + 0x1c]
push ebx
push ebx
push edx
lea ecx, [esp + 0x7c]
push ecx
call eax
mov esi, eax
jmp 0x41471b
or esi, 0xffffffff
push str.InitXLUE
call fcn.00406b70
add esp, 4
test eax, eax
jne 0x41477a
push esi
push str.mount_ret:
push ebx
push str.InitXLUE
call fcn.0040a9c0
add esp, 8
mov ecx, eax
call fcn.0040dcf0
mov ecx, eax
call fcn.004101e0
push 1
mov esi, eax
push ebx
mov dword [0x42d048], ebx
mov edx, dword [esi + 0x240]
push ebx
push edx
push 1
mov ecx, esi
mov dword [esi + 0x248], ebx
call fcn.0040af90
add esi, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [esp + 0x70]
push eax
call fcn.0041630e
add esp, 4
lea ecx, [esp + 0x17]
push ecx
lea eax, [eax + eax + 1]
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x1f], bl
call fcn.00413c80
mov edi, dword [esp + 0x24]
cmp edi, ebx
mov byte [esp + 0x4a4], 4
jne 0x4147b2
xor eax, eax
jmp 0x4147b8
mov eax, dword [esp + 0x28]
sub eax, edi
push ebx
push ebx
push eax
push edi
push 0xffffffffffffffff
lea edx, [esp + 0x84]
push edx
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [esp + 0x10]
push ecx
lea eax, [edi + eax - 1]
push eax
push edi
lea ecx, [esp + 0x60]
mov dword [esp + 0x78], 0xf
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
call fcn.004118c0
push str.InitXLUE
mov byte [esp + 0x4a8], 5
call fcn.00406b70
add esp, 4
test eax, eax
jne 0x414861
lea edx, [esp + 0x70]
push edx
push str.WideCharToMultiByte:
push ebx
push str.InitXLUE
call fcn.0040a9c0
add esp, 8
mov ecx, eax
call fcn.0040dcf0
mov ecx, eax
call fcn.0040dcf0
push 1
mov esi, eax
push ebx
mov dword [0x42d048], ebx
mov eax, dword [esi + 0x240]
push ebx
push eax
push 1
mov ecx, esi
mov dword [esi + 0x248], ebx
call fcn.0040af90
add esi, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esp + 0x6c], 0x10
mov esi, dword [esp + 0x58]
jae 0x414870
lea esi, [esp + 0x58]
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
cmp eax, ebx
je 0x414891
push str.XLUE_LoadXAR
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x414891
push esi
call eax
mov esi, eax
jmp 0x414894
or esi, 0xffffffff
push str.InitXLUE
call fcn.00406b70
add esp, 4
test eax, eax
jne 0x4148f3
push esi
push str.load_commonCtrl_ret:
push ebx
push str.InitXLUE
call fcn.0040a9c0
add esp, 8
mov ecx, eax
call fcn.0040d020
mov ecx, eax
call fcn.004101e0
push 1
mov esi, eax
push ebx
mov dword [0x42d048], ebx
mov edx, dword [esi + 0x240]
push ebx
push edx
push 1
mov ecx, esi
mov dword [esi + 0x248], ebx
call fcn.0040af90
add esi, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esp + 0x6c], 0x10
jb 0x414907
mov eax, dword [esp + 0x58]
push eax
call fcn.0041599c
add esp, 4
cmp edi, ebx
mov dword [esp + 0x6c], 0xf
mov dword [esp + 0x68], ebx
mov byte [esp + 0x58], bl
je 0x414924
push edi
call fcn.0041599c
add esp, 4
mov eax, dword [esp + 0x1c]
mov edx, dword [0x42c058]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4149af
lea esi, [eax - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4149af
push esi
call fcn.00415965
add esp, 4
jmp 0x4149af
push str.InitXLUE
call fcn.00406b70
add esp, 4
test eax, eax
jne 0x4149af
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.xlfs_load_false_error
push ebx
push str.InitXLUE
call fcn.0040a9c0
add esp, 8
mov ecx, eax
call fcn.0040d020
mov ecx, eax
call fcn.0040dbd0
push 1
mov edi, eax
push ebx
mov dword [0x42d048], ebx
mov edx, dword [edi + 0x240]
push ebx
push edx
push 1
mov ecx, edi
mov dword [edi + 0x248], ebx
call fcn.0040af90
add edi, 0xc
push edi
call esi
mov ecx, dword [esp + 0x49c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x494]
mov al, 1
call fcn.0041575b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret