Function at 0x408917
Capabilities:
Delete file
Get common file path
Initialize winsock library
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3fc
mov eax, dword [0x445bbc]
xor eax, esp
mov dword [esp + 0x3f8], eax
mov eax, dword [sym.imp.MSVCR90.dll___argc]
mov eax, dword [eax]
push ebx
push esi
push edi
cmp eax, 4
jne 0x408d0b
lea eax, [esp + 0x68]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
lea eax, [esp + 0x4c]
push eax
call fcn.00417244
cmp dword [eax + 0x18], 8
pop ecx
jb 0x40896a
mov eax, dword [eax + 4]
jmp 0x40896d
add eax, 4
push 0x2e
push eax
lea eax, [esp + 0x38]
push eax
call fcn.00415e2c
add esp, 0xc
lea ecx, [esp + 0x4c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x14]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea esi, [esp + 0x14]
call fcn.004133d9
xor eax, eax
push 0x206
mov word [esp + 0x1fc], ax
xor esi, esi
lea eax, [esp + 0x1fe]
push esi
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
lea eax, [esp + 0x1f8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.Thunder_Networkxlliveud_
lea eax, [esp + 0x1fc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esp + 0x1f8]
push eax
call dword [sym.imp.XLBugHandler.dll__XL_SetBugReportRootDir_4]
cmp dword [esp + 0x2c], 0x10
mov eax, dword [esp + 0x18]
jae 0x4089ff
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.XLBugHandler.dll__XL_SetPeerID_4]
cmp dword [esp + 0x48], 8
mov eax, dword [esp + 0x34]
jae 0x408a15
lea eax, [esp + 0x34]
push eax
push str.xlliveud
push esi
push esi
push str.XLLiveUpdate
call dword [sym.imp.XLBugHandler.dll__XL_InitBugHandler_20]
push esi
call dword [sym.imp.XLBugHandler.dll__XL_SetReportShowMode_4]
test byte [0x446e54], 1
jne 0x408a44
call fcn.004010b4
mov ebx, 0x446e58
jmp 0x408a4b
mov ebx, 0x446e58
mov eax, ebx
mov ecx, dword [sym.imp.MSVCR90.dll___wargv]
mov edx, dword [ecx]
push dword [edx + 0xc]
mov edx, dword [edx + 8]
mov ecx, eax
call fcn.00403d2b
test al, al
je 0x408cb9
test byte [0x446e54], 1
jne 0x408a78
call fcn.004010b4
jmp 0x408a7a
mov eax, ebx
mov esi, eax
call fcn.004044ea
test al, al
je 0x408cb9
cmp dword [esp + 0x48], 8
mov edi, dword [esp + 0x34]
jae 0x408a98
lea edi, [esp + 0x34]
cmp dword [esp + 0x2c], 0x10
mov esi, dword [esp + 0x18]
jae 0x408aa7
lea esi, [esp + 0x18]
test byte [0x446e54], 1
jne 0x408ab7
call fcn.004010b4
jmp 0x408ab9
mov eax, ebx
mov edx, esi
mov ecx, eax
call fcn.004042ab
mov eax, dword [sym.imp.MSVCR90.dll___wargv]
mov eax, dword [eax]
mov esi, dword [eax + 4]
mov ecx, 0x4390d4
mov eax, esi
mov dx, word [eax]
or edi, 0xffffffff
cmp dx, word [ecx]
jne 0x408afc
test dx, dx
je 0x408af8
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x408afc
add eax, 4
add ecx, 4
test dx, dx
jne 0x408ad3
xor eax, eax
jmp 0x408b00
sbb eax, eax
sbb eax, edi
test eax, eax
jne 0x408b1a
test byte [0x446e54], 1
jne 0x408b14
call fcn.004010b4
jmp 0x408b16
mov eax, ebx
xor edx, edx
jmp 0x408b64
mov ecx, 0x4390dc
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x408b47
test dx, dx
je 0x408b43
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x408b47
add eax, 4
add ecx, 4
test dx, dx
jne 0x408b21
xor eax, eax
jmp 0x408b4b
sbb eax, eax
sbb eax, edi
test eax, eax
jne 0x408b6e
test byte [0x446e54], 1
jne 0x408b5f
call fcn.004010b4
jmp 0x408b61
mov eax, ebx
xor edx, edx
inc edx
call fcn.004049df
jmp 0x408cb9
mov ecx, 0x438d84
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x408b9b
test dx, dx
je 0x408b97
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x408b9b
add eax, 4
add ecx, 4
test dx, dx
jne 0x408b75
xor eax, eax
jmp 0x408b9f
sbb eax, eax
sbb eax, edi
test eax, eax
jne 0x408bc6
test byte [0x446e54], 1
jne 0x408bb3
call fcn.004010b4
jmp 0x408bb5
mov eax, ebx
mov ebx, eax
call fcn.0040488a
mov ebx, 0x446e58
jmp 0x408cb9
mov ecx, 0x4390e4
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x408bf3
test dx, dx
je 0x408bef
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x408bf3
add eax, 4
add ecx, 4
test dx, dx
jne 0x408bcd
xor eax, eax
jmp 0x408bf7
sbb eax, eax
sbb eax, edi
test eax, eax
jne 0x408cb9
call fcn.0040887f
call fcn.004110a9
test byte [0x446e54], 1
jne 0x408c19
call fcn.004010b4
jmp 0x408c1b
mov eax, ebx
mov esi, eax
call fcn.004063e4
xor edi, edi
test al, al
je 0x408c99
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
jmp 0x408c64
cmp dword [esp + 0x50], 0x401
jne 0x408c4e
push 1
push 0
call fcn.00401569
xor ecx, ecx
mov edi, eax
call fcn.0040144d
xor edi, edi
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push edi
push edi
push edi
lea eax, [esp + 0x58]
push eax
call esi
test eax, eax
jne 0x408c30
test byte [0x446e54], 1
jne 0x408c82
call fcn.004010b4
jmp 0x408c84
mov eax, ebx
mov esi, eax
call fcn.00404266
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
call fcn.004110e7
push edi
call dword [sym.imp.XLUE.dll_XLUE_Uninit]
push edi
call dword [sym.imp.XLUE.dll_XLUE_UninitLuaHost]
call dword [sym.imp.XLGraphic.dll_XL_UnInitGraphicLib]
push edi
call dword [sym.imp.XLUE.dll_XLUE_UninitHandleMap]
test byte [0x446e54], 1
jne 0x408cc9
call fcn.004010b4
jmp 0x408ccb
mov eax, ebx
mov esi, eax
call fcn.00404266
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test byte [0x446e54], 1
jne 0x408cf1
call fcn.004010b4
jmp 0x408cf3
mov eax, ebx
call fcn.0040445d
lea ecx, [esp + 0x14]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x30]
jmp 0x408e29
cmp eax, 5
jne 0x408e2f
mov eax, dword [sym.imp.MSVCR90.dll___wargv]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov edx, 0x4390ec
mov cx, word [eax]
cmp cx, word [edx]
jne 0x408d49
test cx, cx
je 0x408d45
mov cx, word [eax + 2]
cmp cx, word [edx + 2]
jne 0x408d49
add eax, 4
add edx, 4
test cx, cx
jne 0x408d23
xor eax, eax
jmp 0x408d4e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x408e2f
lea ecx, [esp + 0x4c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
lea ecx, [esp + 0x30]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
lea ecx, [esp + 0x14]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
mov eax, dword [sym.imp.MSVCR90.dll___wargv]
mov eax, dword [eax]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x2c], esp
push dword [eax + 0x10]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea ebx, [esp + 0x30]
call fcn.004155ea
mov ecx, dword [esp + 0x34]
add esp, 0x1c
cmp dword [esp + 0x2c], 8
jae 0x408da8
lea ecx, [esp + 0x18]
mov eax, dword [sym.imp.MSVCR90.dll___wargv]
mov eax, dword [eax]
mov ebx, dword [eax + 0xc]
mov edi, dword [eax + 8]
push ecx
lea esi, [esp + 0x50]
call fcn.004136a5
cmp dword [esp + 0x30], 8
pop ecx
mov ecx, dword [esp + 0x18]
jae 0x408dcf
lea ecx, [esp + 0x18]
mov eax, dword [sym.imp.MSVCR90.dll___wargv]
mov eax, dword [eax]
mov ebx, dword [eax + 0xc]
mov edi, dword [eax + 8]
push ecx
lea esi, [esp + 0x34]
call fcn.00415571
cmp dword [esp + 0x68], 8
mov eax, dword [esp + 0x54]
pop ecx
jae 0x408df6
lea eax, [esp + 0x50]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call esi
cmp dword [esp + 0x48], 8
mov eax, dword [esp + 0x34]
jae 0x408e0e
lea eax, [esp + 0x34]
push eax
call esi
lea ecx, [esp + 0x14]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x30]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x4c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, dword [esp + 0x404]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00428868
mov esp, ebp
pop ebp
ret 0x10