Function at 0x403d40
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x48c
mov eax, dword [0x423190]
push ebx
push esi
mov dword [esp + 0x490], eax
push edi
lea eax, [esp + 0x24]
push eax
mov esi, ecx
call dword [sym.imp.XLGraphic.dll_XL_PrepareGraphicParam]
lea ecx, [esp + 0x24]
xor ebx, ebx
push ecx
mov dword [esp + 0x28], ebx
call dword [sym.imp.XLGraphic.dll_XL_InitGraphicLib]
push 1
call dword [sym.imp.XLGraphic.dll_XL_SetFreeTypeEnabled]
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.XLGraphicPlus.dll_XLGP_PrepareGraphicPlusParam]
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.XLGraphicPlus.dll_XLGP_InitGraphicPlus]
call dword [sym.imp.XLFSIO.dll_XLFS_Init]
push ebx
call dword [sym.imp.XLUE.dll_XLUE_InitLoader]
mov ecx, esi
call fcn.00402620
test al, al
je 0x403f93
mov word [esp + 0x288], bx
xor eax, eax
mov ecx, 0x81
lea edi, [esp + 0x28a]
rep stosd dword es:[edi], eax
push 0x104
lea ecx, [esp + 0x28c]
push ecx
push ebx
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x48]
push edx
mov ecx, esi
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], ebx
mov word [esp + 0x50], bx
call fcn.00403a20
cmp dword [esp + 0x60], 8
mov eax, dword [esp + 0x4c]
jae 0x403e0d
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.XLUE.dll_XLUE_AddXARSearchPath]
xor eax, eax
mov word [esp + 0x80], bx
mov ecx, 0x81
lea edi, [esp + 0x82]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp dword [esp + 0x60], 8
mov eax, dword [esp + 0x4c]
jae 0x403e3d
lea eax, [esp + 0x4c]
push 0x104
push eax
lea eax, [esp + 0x88]
push eax
call fcn.0040cb5b
add esp, 0xc
push str.luacodeInitXlaccHelper.lua
lea ecx, [esp + 0x84]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, eax
push edi
push str.CheckCmdline
lea edx, [esp + 0x88]
push edx
mov ecx, esi
call fcn.00403ba0
test al, al
je 0x403eb0
cmp dword [esp + 0x60], 8
jb 0x403e9b
mov eax, dword [esp + 0x4c]
push eax
call fcn.0040c611
add esp, 4
xor al, al
mov ecx, dword [esp + 0x494]
call fcn.0040c26e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, edi
mov dword [esp + 0x7c], 0xf
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403ec6
sub eax, edx
push eax
push edi
lea ecx, [esp + 0x6c]
call fcn.004033d0
push 9
push 0
push str._ForceRun
lea ecx, [esp + 0x70]
xor bl, bl
call fcn.00402a70
cmp eax, 0xffffffff
je 0x403ef5
mov bl, 1
lea ecx, [esp + 0xc]
call fcn.00401150
lea ecx, [esp + 0xc]
call fcn.004015a0
test al, al
je 0x403fa8
test bl, bl
jne 0x403fa8
push 0
push str.XunLei_XlaccAir_Win32SSHELL_Window
call dword [sym.imp.USER32.dll_FindWindowW]
mov ebx, eax
test ebx, ebx
je 0x403f5f
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [esp + 0x18]
push edx
push 0
push 0x4a
lea ecx, [eax + eax + 2]
push ebx
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edi
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x403f78
push str._notify_otherxlacc
push str.CheckCmdline
lea eax, [esp + 0x88]
push eax
mov ecx, esi
call fcn.00403ba0
lea ecx, [esp + 0xc]
call fcn.00401160
lea ecx, [esp + 0x64]
call fcn.00403120
lea ecx, [esp + 0x48]
call fcn.00402090
xor al, al
mov ecx, dword [esp + 0x494]
call fcn.0040c26e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push str.InitXlacc
lea ecx, [esp + 0x88]
push ecx
mov ecx, esi
call fcn.00403ba0
push str.XlaccAirMainWnd.MainFrame
xor edi, edi
call dword [sym.imp.XLUE.dll_XLUE_GetHostWndByID]
test eax, eax
je 0x403fd7
push eax
call dword [sym.imp.XLUE.dll_XLUE_GetHostWndWindowHandle]
mov edi, eax
lea edx, [esp + 0x288]
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
push 0x32
mov ebx, eax
call esi
push eax
push 0x31
call esi
push eax
push 1
push 0x80
push ebx
call dword [sym.imp.USER32.dll_LoadImageW]
push 0
push 0xc
mov dword [esp + 0x18], eax
call esi
push eax
push 0xb
call esi
push eax
push 1
push 0x80
push ebx
call dword [sym.imp.USER32.dll_LoadImageW]
test edi, edi
mov esi, eax
je 0x40404b
mov eax, dword [esp + 0x10]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push eax
push 0
push 0x80
push edi
call ebx
push esi
push 1
push 0x80
push edi
call ebx
lea ecx, [esp + 0xc]
call fcn.00401160
cmp dword [esp + 0x7c], 0x10
jb 0x404068
mov ecx, dword [esp + 0x68]
push ecx
call fcn.0040c611
add esp, 4
cmp dword [esp + 0x60], 8
mov dword [esp + 0x7c], 0xf
mov dword [esp + 0x78], 0
mov byte [esp + 0x68], 0
jb 0x404091
mov edx, dword [esp + 0x4c]
push edx
call fcn.0040c611
add esp, 4
mov ecx, dword [esp + 0x494]
mov al, 1
call fcn.0040c26e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret