Function at 0x4021b0
Capabilities:
Accept command line arguments

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4031c0
push eax
mov eax, 0x1884
mov dword fs:[0], esp
call fcn.00402cb0
push ebx
push ebp
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call sub.MFC42.DLL_AfxWinInit
test eax, eax
jne 0x4021fd
mov eax, dword [sym.imp.MSVCP60.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
push str.Fatal_Error:_MFC_initialization_failed
push eax
jmp 0x402215
mov edi, dword [esp + 0x18a4]
cmp edi, 1
jne 0x40222f
mov ecx, dword [sym.imp.MSVCP60.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
push str.Error:_no_error_information_specified
push ecx
call dword [sym.imp.MSVCP60.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::operator___class_std::basic_ostream_char__struct_std::char_traits_char_____char_const__]
push eax
call dword [sym.imp.MSVCP60.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char____]
add esp, 0xc
mov eax, 1
jmp 0x402a77
lea ecx, [esp + 0x70]
call fcn.00402bf8
mov esi, dword [esp + 0x18a8]
push 0
push 0
lea ecx, [esp + 0x78]
mov edx, dword [esi + 4]
mov dword [esp + 0x18a4], 0
push edx
call sub.MFC42.DLL_CStdioFile::Open
mov ebp, dword [sym.imp.MSVCP60.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::operator___class_std::basic_ostream_char__struct_std::char_traits_char_____char_const__]
test eax, eax
jne 0x402287
mov eax, dword [esi + 4]
mov ecx, dword [sym.imp.MSVCP60.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
push eax
push str.Error:_can_not_open_file:
push ecx
call ebp
add esp, 8
push eax
call ebp
push eax
call dword [sym.imp.MSVCP60.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char____]
add esp, 0xc
lea ecx, [esp + 0x2c]
call fcn.00402b44
lea ecx, [esp + 0x38]
mov byte [esp + 0x189c], 1
call fcn.00402b44
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x70]
push edx
mov byte [esp + 0x18a0], 2
call sub.MFC42.DLL_CStdioFile::ReadString
test eax, eax
je 0x4022db
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x38]
push eax
call fcn.00402b62
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x74]
call sub.MFC42.DLL_CStdioFile::ReadString
test eax, eax
jne 0x4022bb
lea ecx, [esp + 0x70]
call sub.MFC42.DLL_CStdioFile::Close
push 0x405380
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_2
mov ebx, 3
cmp edi, 2
mov byte [esp + 0x189c], bl
jne 0x402311
push 0x40537c
lea ecx, [esp + 0x18]
call fcn.00402b56
lea edx, [esp + 0x10]
push edx
call fcn.004014c0
mov esi, eax
lea eax, [esp + 0x1c]
mov byte [esp + 0x18a0], 4
push eax
call fcn.004017a0
add esp, 8
push str.__Language:
lea ecx, [esp + 0x40]
push eax
push ecx
mov byte [esp + 0x18a8], 5
call sub.MFC42.DLL_operator
push esi
lea edx, [esp + 0x24]
push eax
push edx
mov byte [esp + 0x18a8], 6
call sub.MFC42.DLL_operator_1
push 0x4054c4
push eax
lea eax, [esp + 0x24]
mov byte [esp + 0x18a4], 7
push eax
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x18a0], 8
call fcn.00402b62
lea ecx, [esp + 0x1c]
mov byte [esp + 0x189c], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x189c], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x3c]
mov byte [esp + 0x189c], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x189c], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x189c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
push ecx
call fcn.00401940
add esp, 4
push 0x4054c4
lea edx, [esp + 0x14]
push eax
push edx
mov byte [esp + 0x18a8], 9
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x18a0], 0xa
call fcn.00402b62
lea ecx, [esp + 0x10]
mov byte [esp + 0x189c], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x189c], bl
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x18]
push eax
call fcn.00401b20
add esp, 4
push 0x4054c4
mov byte [esp + 0x18a0], 0xb
push eax
lea ecx, [esp + 0x18]
push ecx
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x18a0], 0xc
call fcn.00402b62
lea ecx, [esp + 0x10]
mov byte [esp + 0x189c], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x189c], bl
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x18]
push edx
call fcn.00401ce0
add esp, 4
push 0x4054c4
push eax
lea eax, [esp + 0x18]
mov byte [esp + 0x18a4], 0xd
push eax
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x18a0], 0xe
call fcn.00402b62
lea ecx, [esp + 0x10]
mov byte [esp + 0x189c], 0xd
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x189c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
push ecx
call fcn.00401be0
add esp, 4
push 0x4054c4
lea edx, [esp + 0x14]
push eax
push edx
mov byte [esp + 0x18a8], 0xf
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x18a0], 0x10
call fcn.00402b62
lea ecx, [esp + 0x10]
mov byte [esp + 0x189c], 0xf
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x189c], bl
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x38]
push 0x4054c4
lea ecx, [esp + 0x14]
push eax
push ecx
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x18a0], 0x11
call fcn.00402b62
lea ecx, [esp + 0x10]
mov byte [esp + 0x189c], bl
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x28]
push edx
call fcn.00401430
mov esi, eax
lea eax, [esp + 0x48]
mov byte [esp + 0x18a0], 0x12
push eax
call fcn.004015c0
mov edi, eax
lea ecx, [esp + 0x50]
mov byte [esp + 0x18a4], 0x13
push ecx
call fcn.004016c0
add esp, 0xc
push 0x405368
lea edx, [esp + 0x24]
push eax
push edx
mov byte [esp + 0x18a8], 0x14
call sub.MFC42.DLL_operator
push edi
push eax
lea eax, [esp + 0x24]
mov byte [esp + 0x18a4], 0x15
push eax
call sub.MFC42.DLL_operator_1
push 0x405368
lea ecx, [esp + 0x40]
push eax
push ecx
mov byte [esp + 0x18a8], 0x16
call sub.MFC42.DLL_operator
push esi
lea edx, [esp + 0x1c]
push eax
push edx
mov byte [esp + 0x18a8], 0x17
call sub.MFC42.DLL_operator_1
push 0x4054c4
push eax
lea eax, [esp + 0x18]
mov byte [esp + 0x18a4], 0x18
push eax
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x18a0], 0x19
call fcn.00402b62
lea ecx, [esp + 0x10]
mov byte [esp + 0x189c], 0x18
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x189c], 0x17
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x3c]
mov byte [esp + 0x189c], 0x16
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x189c], 0x15
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x189c], 0x14
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x48]
mov byte [esp + 0x189c], 0x13
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x44]
mov byte [esp + 0x189c], 0x12
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x189c], bl
call sub.MFC42.DLL_CString::CString
push 0x800
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::GetBuffer
mov ecx, dword [sym.imp.MSVCP60.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push eax
push str.Send_Error_Information:
push ecx
call ebp
add esp, 8
push eax
call ebp
push eax
call dword [sym.imp.MSVCP60.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char____]
mov eax, dword [0x40533c]
mov ecx, dword [0x405340]
mov dword [esp + 0x6c], eax
mov al, byte [0x405348]
mov dword [esp + 0x70], ecx
mov byte [esp + 0x78], al
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0xa1]
mov byte [esp + 0xa0], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x10a1]
mov byte [esp + 0x10a0], 0
rep stosd dword es:[edi], eax
xor ecx, ecx
mov edx, dword [str._cgi_bin_CheckNe]
stosw word es:[edi], ax
mov dword [esp + 0x59], ecx
mov dword [esp + 0x68], edx
mov dword [esp + 0x5d], ecx
mov edx, dword [0x405344]
stosb byte es:[edi], al
mov byte [esp + 0x61], cl
mov byte [esp + 0x8a0], cl
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x8a1]
mov dword [esp + 0x74], edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x58], 0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xa0]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x8a0]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x68]
and ecx, ebx
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x4c]
lea edi, [esp + 0xa0]
push ecx
push edx
push eax
or ecx, 0xffffffff
xor eax, eax
xor esi, esi
repne scasb al, byte es:[edi]
not ecx
push ecx
lea ecx, [esp + 0xb0]
push ecx
mov dword [esp + 0x60], esi
call fcn.004010d0
mov eax, dword [esp + 0x60]
add esp, 0x20
lea edx, [esp + 0x1094]
cmp eax, esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], esi
jle 0x402841
mov ecx, dword [esp + 0x20]
xor eax, eax
lea edx, [esp + 0x4c]
mov al, byte [esp + ecx + 0x894]
push eax
push str._02X
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edi, [esp + 0x58]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x1c]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, eax
add eax, 2
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x20]
and ecx, ebx
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x40]
inc eax
cmp eax, ecx
mov dword [esp + 0x20], eax
jl 0x4027e4
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x1094]
push ecx
lea ecx, [esp + 0x18]
mov byte [eax], 0
call fcn.00402b56
lea edx, [esp + 0x84]
push edx
call dword [sym.imp.ole32.dll_CoCreateGuid]
lea eax, [esp + 0x58]
lea ecx, [esp + 0x84]
push eax
push ecx
call dword [sym.imp.ole32.dll_StringFromCLSID]
mov edx, dword [esp + 0x58]
lea ecx, [esp + 0x34]
push edx
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0x34]
mov ecx, 0x4053f8
push eax
mov byte [esp + 0x18a0], 0x1a
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x24]
call fcn.00402b44
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x14]
push ecx
push edx
lea eax, [esp + 0x2c]
push str.http:__bqq.tencent.com_cgi_bin_bqq_ErrLog.cgi_LocalVersion_sGUID_s
push eax
mov byte [esp + 0x18ac], 0x1b
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x4054c8
call sub.MFC42.DLL_CString::CString_2
push ecx
lea edx, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x4c], esp
push edx
mov byte [esp + 0x18a8], 0x1c
call fcn.00402b4a
lea eax, [esp + 0x38]
mov byte [esp + 0x18a4], 0x1b
push eax
call fcn.00401d90
add esp, 0xc
push 0x400
lea ecx, [esp + 0x34]
mov byte [esp + 0x18a0], 0x1d
call sub.MFC42.DLL_CString::GetBuffer
mov ecx, dword [sym.imp.MSVCP60.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push eax
push ecx
call ebp
push eax
call dword [sym.imp.MSVCP60.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char____]
mov eax, dword [esp + 0x18b0]
add esp, 0xc
cmp eax, ebx
jl 0x4029fc
mov esi, dword [esp + 0x18a8]
mov eax, dword [sym.imp.MSVCP60.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, dword [esi + 8]
push edx
push str.Send_Log_File:
push eax
call ebp
add esp, 8
push eax
call ebp
push eax
call dword [sym.imp.MSVCP60.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char____]
add esp, 0xc
lea ecx, [esp + 0x24]
push str.http:__bqq.tencent.com_cgi_bin_uperrlog.cgi
call fcn.00402b56
mov edx, dword [esi + 8]
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
push edx
call sub.MFC42.DLL_CString::CString_2
push ecx
lea eax, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x50], esp
push eax
mov byte [esp + 0x18a8], 0x1e
call fcn.00402b4a
lea ecx, [esp + 0x30]
mov byte [esp + 0x18a4], 0x1d
push ecx
call fcn.00401d90
add esp, 0xc
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x18a0], 0x1f
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x28]
mov byte [esp + 0x189c], 0x1d
call sub.MFC42.DLL_CString::CString
push 0x400
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::GetBuffer
mov edx, dword [sym.imp.MSVCP60.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push eax
push edx
call ebp
push eax
call dword [sym.imp.MSVCP60.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char____]
add esp, 0xc
lea ecx, [esp + 0x30]
mov byte [esp + 0x189c], 0x1b
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x189c], 0x1a
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0x189c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x189c], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0x189c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x189c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x70]
mov dword [esp + 0x189c], 0xffffffff
call sub.MFC42.DLL_CStdioFile::CStdioFile
xor eax, eax
mov ecx, dword [esp + 0x1894]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x1890
ret