Function at 0x41d5b0
Capabilities:
Connect to http server
Create http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426380
mov eax, dword fs:[0]
push eax
sub esp, 0x724
mov eax, dword [0x435014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x728], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x72c], eax
mov eax, dword [ebp + 8]
cmp eax, 1
je 0x41d605
cmp eax, 2
je 0x41d605
mov al, 1
jmp 0x41dbe6
push 0x427d94
lea ecx, [ebp - 0x710]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__11]
mov dword [ebp - 4], 0
mov dword [ebp - 0x724], 0
mov dword [ebp - 0x720], 0
mov dword [ebp - 0x71c], 0
mov byte [ebp - 4], 1
push 0x40
mov dword [ebp - 0x718], 0
mov dword [ebp - 0x714], 0
call dword [sym.imp.mfc140u.dll_operator]
mov esi, eax
add esp, 4
mov dword [esi], esi
mov dword [esi + 4], esi
mov dword [esi + 8], esi
mov word [esi + 0xc], 0x101
mov dword [ebp - 0x718], esi
mov byte [ebp - 4], 2
lea eax, [ebp - 0x718]
push dword [esi + 4]
mov ecx, eax
push eax
call fcn.0040fd60
mov dword [esi + 4], esi
mov dword [esi], esi
mov dword [esi + 8], esi
mov edx, dword [ebp - 0x720]
push ecx
mov ecx, dword [ebp - 0x724]
mov dword [ebp - 0x714], 0
call fcn.0040ff30
mov eax, dword [ebp - 0x724]
add esp, 4
mov dword [ebp - 0x720], eax
lea eax, [ebp - 0x724]
push eax
push dword [ebp - 0x728]
call fcn.00419e90
test al, al
je 0x41db9b
push 0x80
lea eax, [ebp - 0x1bc]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x80
lea eax, [ebp - 0x2bc]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x80
lea eax, [ebp - 0x23c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov ecx, esp
push 2
push 0x42caa8
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
call fcn.004093b0
push 0x80
lea eax, [ebp - 0x1bc]
push eax
lea eax, [ebp - 0x724]
push eax
call fcn.0040af30
sub esp, 0x18
mov ecx, esp
push 5
push str.Batch
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
call fcn.004093b0
push 0x80
lea eax, [ebp - 0x2bc]
push eax
lea eax, [ebp - 0x724]
push eax
call fcn.0040af30
sub esp, 0x18
mov ecx, esp
push 7
push str.Station
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
call fcn.004093b0
push 0x80
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x724]
push eax
call fcn.0040af30
push 0x64
lea eax, [ebp - 0x13c]
mov dword [ebp - 0x70c], 0x15
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x64
lea eax, [ebp - 0xd8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x64
lea eax, [ebp - 0x74]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x24
cmp dword [ebp + 8], 2
jne 0x41db15
push 0xa
push 0x429d0c
lea ecx, [ebp - 0x6d4]
mov dword [ebp - 0x6c4], 0
mov dword [ebp - 0x6c0], 0xf
mov byte [ebp - 0x6d4], 0
call fcn.004093b0
sub esp, 0x18
mov byte [ebp - 4], 3
mov ecx, esp
mov dword [ebp - 0x730], esp
push 0x11
push 0x429d88
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
call fcn.004093b0
push 0x64
lea eax, [ebp - 0x13c]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x6d4]
push eax
lea ecx, [edi + 0x3e8]
call fcn.0040f400
push eax
mov byte [ebp - 4], 3
call fcn.0040af30
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x6c0]
cmp edx, 0x10
jb 0x41d8c3
mov ecx, dword [ebp - 0x6d4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41d8b9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41d8b9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0042313b
add esp, 8
push 0xa
push 0x429d0c
lea ecx, [ebp - 0x6d4]
mov dword [ebp - 0x6c4], 0
mov dword [ebp - 0x6c0], 0xf
mov byte [ebp - 0x6d4], 0
call fcn.004093b0
sub esp, 0x18
mov byte [ebp - 4], 5
mov ecx, esp
mov dword [ebp - 0x730], esp
push 0xf
push 0x429d9c
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
call fcn.004093b0
push 0x64
lea eax, [ebp - 0xd8]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x6d4]
push eax
lea ecx, [edi + 0x3e8]
call fcn.0040f400
push eax
mov byte [ebp - 4], 5
call fcn.0040af30
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x6c0]
cmp edx, 0x10
jb 0x41d985
mov ecx, dword [ebp - 0x6d4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41d97b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41d97b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0042313b
add esp, 8
push 0xa
push 0x429d0c
lea ecx, [ebp - 0x6d4]
mov dword [ebp - 0x6c4], 0
mov dword [ebp - 0x6c0], 0xf
mov byte [ebp - 0x6d4], 0
call fcn.004093b0
sub esp, 0x18
mov byte [ebp - 4], 7
mov ecx, esp
mov dword [ebp - 0x730], esp
push 0x13
push 0x429dac
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
call fcn.004093b0
push 0x64
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x6d4]
push eax
lea ecx, [edi + 0x3e8]
call fcn.0040f400
push eax
mov byte [ebp - 4], 7
call fcn.0040af30
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x6c0]
cmp edx, 0x10
jb 0x41da44
mov ecx, dword [ebp - 0x6d4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41da3a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41da3a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0042313b
add esp, 8
push 0xa
push 0x429d0c
lea ecx, [ebp - 0x6d4]
mov dword [ebp - 0x6c4], 0
mov dword [ebp - 0x6c0], 0xf
mov byte [ebp - 0x6d4], 0
call fcn.004093b0
sub esp, 0x18
mov byte [ebp - 4], 9
mov ecx, esp
mov dword [ebp - 0x730], esp
push 0xf
push 0x429dc0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
call fcn.004093b0
lea eax, [ebp - 0x70c]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x6d4]
push eax
lea ecx, [edi + 0x3e8]
call fcn.0040f400
push eax
mov byte [ebp - 4], 9
call fcn.0040b050
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x6c0]
cmp edx, 0x10
jb 0x41db04
mov ecx, dword [ebp - 0x6d4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41dafa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41dafa
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0042313b
add esp, 8
mov esi, dword [ebp - 0x70c]
mov dword [ebp - 0x70c], esi
jmp 0x41dc45
cmp byte [edi + 0xd8], 0
lea esi, [edi + 0xd8]
jne 0x41dc03
lea eax, [edi + 0x670]
push eax
push dword [edi + 0x3f0]
call dword [sym.imp.Unisoc_Solution_MES.dll_MES_Login]
test eax, eax
jne 0x41db71
lea eax, [ebp - 0x1bc]
push eax
push dword [edi + 0x3f0]
call dword [sym.imp.Unisoc_Solution_MES.dll_MES_V2_SendDatabase]
test eax, eax
jne 0x41db71
lea eax, [edi + 0xd0]
push eax
push dword [edi + 0x3f0]
call dword [sym.imp.Unisoc_Solution_MES.dll_MES_V2_GetUploadDataLogConfig]
test eax, eax
je 0x41dc03
push str.Mes_Connect
lea ecx, [ebp - 0x710]
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::operator]
push dword [ebp - 0x710]
push 0
push 0x7e9
push dword [0x435e4c]
call dword [sym.imp.USER32.dll_SendMessageW]
mov byte [ebp - 0x705], 0
mov eax, dword [ebp - 0x718]
push dword [eax + 4]
lea eax, [ebp - 0x718]
push eax
mov ecx, eax
call fcn.0040fd60
push 0x40
push dword [ebp - 0x718]
call fcn.0042313b
add esp, 8
lea ecx, [ebp - 0x724]
call fcn.0040f850
lea ecx, [ebp - 0x710]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov al, byte [ebp - 0x705]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00422eb6
mov esp, ebp
pop ebp
ret 0xc
push esi
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
lea eax, [ebp - 0x13c]
push 0x64
push eax
call esi
lea eax, [edi + 0x158]
push eax
lea eax, [ebp - 0xd8]
push 0x64
push eax
call esi
lea eax, [edi + 0x198]
push eax
lea eax, [ebp - 0x74]
push 0x64
push eax
call esi
mov eax, dword [edi + 0xd4]
add esp, 0x24
mov dword [ebp - 0x70c], eax
push 1
push 0x42cb5c
lea ecx, [ebp - 0x6d4]
mov dword [ebp - 0x6c4], 0
mov dword [ebp - 0x6c0], 0xf
mov byte [ebp - 0x6d4], 0
call fcn.004093b0
mov edx, dword [ebp - 0x72c]
mov ecx, edx
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x6dc], 0
mov dword [ebp - 0x6d8], 0xf
mov byte [ebp - 0x6ec], 0
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41dca0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x6ec]
call fcn.004093b0
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x6d4]
cmp dword [ebp - 0x6c0], 0x10
lea ecx, [ebp - 0x6ec]
mov esi, dword [ebp - 0x6c4]
cmovae eax, dword [ebp - 0x6d4]
cmp dword [ebp - 0x6d8], 0x10
mov edx, dword [ebp - 0x6dc]
cmovae ecx, dword [ebp - 0x6ec]
push esi
push eax
push ecx
call fcn.00416b40
add esp, 0xc
mov dword [ebp - 0x6f4], 0
mov dword [ebp - 0x6f0], 0xf
mov byte [ebp - 0x704], 0
lea edx, [eax + esi]
mov eax, dword [ebp - 0x6dc]
cmp eax, edx
jb 0x41e06e
sub eax, edx
mov ecx, 8
cmp eax, ecx
cmovb ecx, eax
cmp dword [ebp - 0x6d8], 0x10
lea eax, [ebp - 0x6ec]
cmovae eax, dword [ebp - 0x6ec]
push ecx
add eax, edx
lea ecx, [ebp - 0x704]
push eax
call fcn.004093b0
mov edx, dword [ebp - 0x6d8]
cmp edx, 0x10
jb 0x41dd8e
mov ecx, dword [ebp - 0x6ec]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41dd84
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41e059
push edx
push ecx
call fcn.0042313b
add esp, 8
movups xmm0, xmmword [ebp - 0x704]
push 0x200
lea eax, [ebp - 0x4bc]
movups xmmword [ebp - 0x6ec], xmm0
push 0
movq xmm0, qword [ebp - 0x6f4]
push eax
movq qword [ebp - 0x6dc], xmm0
call sub.VCRUNTIME140.dll_memset
push dword [ebp - 0x72c]
cmp dword [ebp - 0x6f0], 0x10
lea ecx, [ebp - 0x6ec]
lea eax, [ebp - 0x23c]
cmovae ecx, dword [ebp - 0x704]
push ecx
push eax
lea eax, [ebp - 0x2bc]
push eax
lea eax, [ebp - 0x1bc]
push eax
push str.DataLog_s_s_s_s_s
lea eax, [ebp - 0x4bc]
push 0x200
push eax
call fcn.00407790
mov esi, dword [edi + 0x3f4]
add esp, 0x2c
mov dword [ebp - method.CFtpMethod.virtual_0], vtable.CFtpMethod.0
mov dword [ebp - 0x6f4], 0
mov dword [ebp - 0x6f0], esi
push 0x4000000
push 0
push 0
push 1
push str.FTP_MES
mov byte [ebp - 4], 0xd
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x6f8], eax
test eax, eax
jne 0x41de53
push str.FTP_InternetOpen_Fail
jmp 0x41de8a
push 0
push 0x28000000
push 1
lea ecx, [ebp - 0x74]
push ecx
lea ecx, [ebp - 0xd8]
push ecx
push dword [ebp - 0x70c]
lea ecx, [ebp - 0x13c]
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp - 0x6f4], eax
test eax, eax
jne 0x41deb3
push str.FTP_InternetConnect_Fail
push 0x19
push esi
call dword [sym.imp.Unisoc_Solution_PrintLog.dll_PLOG_Print_Detail_Log]
add esp, 0xc
lea eax, [edi + 0xd0]
push 0x308
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push str.FTP_Connect
jmp 0x41ded4
lea eax, [ebp - 0x4bc]
push eax
push dword [ebp - 0x728]
lea ecx, [ebp - 0x6fc]
call fcn.004117b0
test al, al
jne 0x41df05
push str.FTP_PutFile
lea ecx, [ebp - 0x710]
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::operator]
push dword [ebp - 0x710]
push 0
push 0x7e9
push dword [0x435e4c]
call dword [sym.imp.USER32.dll_SendMessageW]
mov byte [ebp - 0x705], 0
jmp 0x41dfd6
mov eax, dword [ebp - 0x6f8]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
test eax, eax
je 0x41df22
push eax
call esi
mov dword [ebp - 0x6f8], 0
mov eax, dword [ebp - 0x6f4]
test eax, eax
je 0x41df39
push eax
call esi
mov dword [ebp - 0x6f4], 0
push 0
push dword [ebp - 0x728]
mov ecx, edi
call fcn.0041f7d0
inc dword [0x435e54]
cmp byte [0x435e48], 0
jne 0x41df7d
push str.FTP_PutFile
lea ecx, [ebp - 0x710]
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::operator]
push dword [ebp - 0x710]
push 0
push 0x7e9
push dword [0x435e4c]
jmp 0x41dfc9
test byte [edi + 0x468], 2
jne 0x41dfcf
push 0x200
lea eax, [ebp - 0x6bc]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push dword [ebp - 0x72c]
lea eax, [ebp - 0x6bc]
push str._s_r_n
push 0x200
push eax
call fcn.00407790
add esp, 0x1c
lea eax, [ebp - 0x6bc]
push eax
push 0
push 0x7e9
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
mov byte [ebp - 0x705], 1
mov edx, dword [ebp - 0x6d8]
cmp edx, 0x10
jb 0x41e00c
mov ecx, dword [ebp - 0x6ec]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41e002
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41e059
push edx
push ecx
call fcn.0042313b
add esp, 8
mov eax, dword [ebp - 0x6c0]
mov dword [ebp - 0x6dc], 0
mov dword [ebp - 0x6d8], 0xf
mov byte [ebp - 0x6ec], 0
cmp eax, 0x10
jb 0x41dba2
mov edx, dword [ebp - 0x6d4]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x41e05f
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41e05f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0042313b
add esp, 8
jmp 0x41dba2
call fcn.00411e30
int3