Function at 0x412c70
Capabilities:
Accept command line arguments
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41477e
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x41e018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
mov dword [ebp - 4], 0
push 0x418228
push 0x41822c
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Replace]
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90u.dll_]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00412b30
add esp, 8
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x24], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x24]
push edx
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
push 0x41ea40
lea ecx, [ebp - 0x14]
call dword [0x417194]
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc90u.dll_]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x41e9c8], eax
cmp dword [0x41e9c8], 0
jne 0x412d5b
push 0x418230
call dword [sym.imp.MSVCR90.dll_wprintf]
add esp, 4
mov byte [ebp - 0x19], 0
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov al, byte [ebp - 0x19]
jmp 0x412f5d
push str.Command
mov eax, dword [0x41e9c8]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x41e9cc], eax
push str.Connect3
mov ecx, dword [0x41e9c8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x41e9d0], eax
push str.Disconnect
mov edx, dword [0x41e9c8]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x41e9d4], eax
push str.IsConnected
mov eax, dword [0x41e9c8]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x41e9d8], eax
push str.ItemClearCache
mov ecx, dword [0x41e9c8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x41e9dc], eax
push str.ItemEnumPatches
mov edx, dword [0x41e9c8]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x41e9e0], eax
push str.ItemDownloadStart
mov eax, dword [0x41e9c8]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x41e9e4], eax
push str.ItemDownloadTogglePauseState
mov ecx, dword [0x41e9c8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x41e9ec], eax
push str.ItemDownloadCancel
mov edx, dword [0x41e9c8]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x41e9e8], eax
push str.ItemDownloadGetStatus
mov eax, dword [0x41e9c8]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x41e9f0], eax
push str.ItemInstallStart
mov ecx, dword [0x41e9c8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x41e9f4], eax
push str.ItemInstallStartBatch
mov edx, dword [0x41e9c8]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x41e9f8], eax
push str.ItemGetStatus
mov eax, dword [0x41e9c8]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x41e9fc], eax
cmp dword [0x41e9cc], 0
je 0x412ef6
cmp dword [0x41e9d0], 0
je 0x412ef6
cmp dword [0x41e9d4], 0
je 0x412ef6
cmp dword [0x41e9d8], 0
je 0x412ef6
cmp dword [0x41e9dc], 0
je 0x412ef6
cmp dword [0x41e9e0], 0
je 0x412ef6
cmp dword [0x41e9e4], 0
je 0x412ef6
cmp dword [0x41e9ec], 0
je 0x412ef6
cmp dword [0x41e9e8], 0
je 0x412ef6
cmp dword [0x41e9f0], 0
je 0x412ef6
cmp dword [0x41e9f4], 0
je 0x412ef6
cmp dword [0x41e9f8], 0
je 0x412ef6
cmp dword [0x41e9fc], 0
jne 0x412f3d
mov ecx, dword [0x41e9c8]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x41e9c8], 0
push str.EACore.dll_missing_one_or_more_required_public_functions
call dword [sym.imp.MSVCR90.dll_wprintf]
add esp, 4
mov byte [ebp - 0x1a], 0
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov al, byte [ebp - 0x1a]
jmp 0x412f5d
mov byte [ebp - 0x1b], 1
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov al, byte [ebp - 0x1b]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret