Function at 0x1004b830
Capabilities:
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f27ab
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x1011b040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x170], ecx
mov dword [ebp - 0x174], 0
cmp dword [ebp + 8], 0
jne 0x1004b88d
mov dword [ebp - 0x1ec], str.uri_not_vaild...
push 0x1010887c
lea eax, [ebp - 0x1ec]
push eax
call sub.MSVCR120.dll__CxxThrowException
mov ecx, dword [ebp - 0x170]
cmp dword [ecx + 8], 0
je 0x1004b8a5
mov edx, dword [ebp - 0x170]
cmp dword [edx + 8], 0xffffffff
jne 0x1004b8c0
mov dword [ebp - 0x1c0], 0x100fa260
push 0x1010887c
lea eax, [ebp - 0x1c0]
push eax
call sub.MSVCR120.dll__CxxThrowException
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x248], esp
mov edx, dword [ebp + 8]
push edx
call fcn.10009fe0
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x94]
push eax
call sym.COMMON.dll_public:_static_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_CCodeOperation::UTF_8ToUnicode_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___
add esp, 0x1c
mov dword [ebp - 0x1f8], eax
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
je 0x1004b958
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x228], esp
mov edx, dword [ebp + 0xc]
push edx
call fcn.10009fe0
mov dword [ebp - 0x1fc], eax
lea eax, [ebp - 0x154]
push eax
call sym.COMMON.dll_public:_static_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_CCodeOperation::UTF_8ToUnicode_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___
add esp, 0x1c
mov dword [ebp - 0x1e8], eax
mov ecx, dword [ebp - 0x1e8]
mov dword [ebp - 0x1c8], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x174]
or edx, 1
mov dword [ebp - 0x174], edx
mov eax, dword [ebp - 0x1c8]
mov dword [ebp - 0x188], eax
jmp 0x1004b989
push 0x100fa278
lea ecx, [ebp - 0x124]
call fcn.10014010
mov dword [ebp - 0x19c], eax
mov ecx, dword [ebp - 0x174]
or ecx, 2
mov dword [ebp - 0x174], ecx
mov edx, dword [ebp - 0x19c]
mov dword [ebp - 0x188], edx
mov eax, dword [ebp - 0x188]
mov dword [ebp - 0x1a4], eax
mov ecx, dword [ebp - 0x1a4]
push ecx
lea ecx, [ebp - 0x4c]
call fcn.10014050
mov dword [ebp - 4], 2
mov edx, dword [ebp - 0x174]
and edx, 2
je 0x1004b9c8
and dword [ebp - 0x174], 0xfffffffd
lea ecx, [ebp - 0x124]
call fcn.1000a1c0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x174]
and eax, 1
je 0x1004b9e9
and dword [ebp - 0x174], 0xfffffffe
lea ecx, [ebp - 0x154]
call fcn.1000a1c0
mov dword [ebp - 0x17c], 0x4000000
mov ecx, dword [ebp - 0x170]
cmp dword [ecx + 0xa4], 2
jne 0x1004ba14
mov edx, dword [ebp - 0x17c]
or edx, 0x800000
mov dword [ebp - 0x17c], edx
mov eax, dword [ebp - 0x170]
movzx ecx, byte [eax + 0xb8]
test ecx, ecx
jne 0x1004ba37
mov edx, dword [ebp - 0x17c]
or edx, 0x200000
mov dword [ebp - 0x17c], edx
lea ecx, [ebp - 0x4c]
call fcn.100140a0
movzx eax, al
test eax, eax
je 0x1004ba52
mov dword [ebp - 0x18c], 0
jmp 0x1004ba60
lea ecx, [ebp - 0x4c]
call fcn.1000a260
mov dword [ebp - 0x18c], eax
push 0
mov ecx, dword [ebp - 0x17c]
push ecx
push 0x101226ac
mov edx, dword [ebp - 0x18c]
push edx
push str.HTTP_1.1
lea ecx, [ebp - 0x94]
call fcn.1000a260
push eax
push 0x100fa290
mov eax, dword [ebp - 0x170]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov edx, dword [ebp - 0x170]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 0x170]
cmp dword [eax + 0xc], 0
je 0x1004bac0
mov ecx, dword [ebp - 0x170]
cmp dword [ecx + 0xc], 0xffffffff
jne 0x1004bb70
call fcn.1002e8a0
mov ecx, eax
call sym.COMMON.dll_public:_int___thiscall_CppSQLite3Exception::ErrorCode_void_const
test eax, eax
jg 0x1004bb55
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [ebp - 0x16c]
push edx
call sym.COMMON.dll_public:_static_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_CCodeOperation::IntToWString_int_
add esp, 8
mov dword [ebp - 0x1ac], eax
mov eax, dword [ebp - 0x1ac]
mov dword [ebp - 0x1b4], eax
mov byte [ebp - 4], 4
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x204], esp
mov edx, dword [ebp - 0x1b4]
push edx
push str.RequestGet__HttpOpenRequest_Failed:
push ecx
call fcn.100346d0
add esp, 0xc
mov dword [ebp - 0x1bc], eax
mov eax, dword [ebp - 0x1bc]
mov dword [ebp - 0x20c], eax
mov byte [ebp - 4], 5
call fcn.1002e8a0
mov byte [ebp - 4], 4
mov ecx, eax
call fcn.1002e660
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x16c]
call fcn.1000a1c0
mov dword [ebp - 0x1c4], 0x100fa2e0
push 0x1010887c
lea ecx, [ebp - 0x1c4]
push ecx
call sub.MSVCR120.dll__CxxThrowException
mov ecx, dword [ebp - 0x170]
add ecx, 0xbc
call fcn.100140a0
movzx edx, al
test edx, edx
jne 0x1004bd92
mov dword [ebp - 0x184], 1
mov eax, dword [ebp - 0x170]
movzx ecx, byte [eax + 0xd4]
test ecx, ecx
je 0x1004bbd8
push 0x80000000
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x170]
add ecx, 0xbc
call fcn.1000d8c0
push eax
mov edx, dword [ebp - 0x170]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
mov dword [ebp - 0x184], eax
jmp 0x1004bc07
push 0x10000000
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x170]
add ecx, 0xbc
call fcn.1000d8c0
push eax
mov ecx, dword [ebp - 0x170]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
mov dword [ebp - 0x184], eax
cmp dword [ebp - 0x184], 0
jne 0x1004bd81
call fcn.1002e8a0
mov ecx, eax
call sym.COMMON.dll_public:_int___thiscall_CppSQLite3Exception::ErrorCode_void_const
test eax, eax
jg 0x1004bd81
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xc4]
push eax
call sym.COMMON.dll_public:_static_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_CCodeOperation::IntToWString_int_
add esp, 8
mov dword [ebp - 0x1cc], eax
mov ecx, dword [ebp - 0x1cc]
mov dword [ebp - 0x1d4], ecx
mov byte [ebp - 4], 6
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x214], esp
mov edx, dword [ebp - 0x1d4]
push edx
push 0x100fa2f4
mov eax, dword [ebp - 0x170]
add eax, 0xbc
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x21c], esp
push eax
call fcn.10009f50
mov dword [ebp - 0x224], eax
lea ecx, [ebp - 0xf4]
push ecx
call sym.COMMON.dll_public:_static_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_CCodeOperation::StringToWstring_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___
add esp, 0x1c
mov dword [ebp - 0x1dc], eax
mov edx, dword [ebp - 0x1dc]
mov dword [ebp - 0x1e4], edx
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x1e4]
push eax
push 0x100fa318
lea ecx, [ebp - 0xdc]
push ecx
call fcn.100346d0
add esp, 0xc
mov dword [ebp - 0x198], eax
mov edx, dword [ebp - 0x198]
mov dword [ebp - 0x1f4], edx
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x1f4]
push eax
lea ecx, [ebp - 0x13c]
push ecx
call fcn.100245b0
add esp, 0xc
mov dword [ebp - 0x1a0], eax
mov edx, dword [ebp - 0x1a0]
mov dword [ebp - 0x1e0], edx
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x1e0]
push eax
push esi
call fcn.10024110
add esp, 0xc
mov dword [ebp - 0x1a8], eax
mov ecx, dword [ebp - 0x1a8]
mov dword [ebp - 0x22c], ecx
mov byte [ebp - 4], 0xa
call fcn.1002e8a0
mov byte [ebp - 4], 9
mov ecx, eax
call fcn.1002e660
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x13c]
call fcn.1000a1c0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xdc]
call fcn.1000a1c0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xf4]
call fcn.1000a1c0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xc4]
call fcn.1000a1c0
mov ecx, dword [ebp - 0x170]
add ecx, 0xbc
call fcn.1003eb50
mov ecx, dword [ebp - 0x170]
add ecx, 0xb0
call sym.COMMON.dll_public:_int___thiscall_CppSQLite3Exception::ErrorCode_void_const
test eax, eax
jbe 0x1004c026
lea ecx, [ebp - 0x34]
call fcn.10009fb0
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0x170]
mov eax, dword [edx + 0xa4]
mov dword [ebp - 0x190], eax
cmp dword [ebp - 0x190], 1
je 0x1004bddd
cmp dword [ebp - 0x190], 2
je 0x1004bdec
jmp 0x1004bdf9
push 0x100fa35c
lea ecx, [ebp - 0x34]
call fcn.1001ca80
jmp 0x1004bdf9
push 0x100fa30c
lea ecx, [ebp - 0x34]
call fcn.1001ca80
mov ecx, dword [ebp - 0x170]
add ecx, 0x10
call fcn.1000d8c0
push eax
lea ecx, [ebp - 0x34]
call fcn.1000f720
mov ecx, dword [ebp - 0x170]
cmp dword [ecx + 0xa4], 1
jne 0x1004be2e
mov edx, dword [ebp - 0x170]
cmp dword [edx + 0xa0], 0x50
je 0x1004be8f
mov eax, dword [ebp - 0x170]
cmp dword [eax + 0xa4], 2
jne 0x1004be4f
mov ecx, dword [ebp - 0x170]
cmp dword [ecx + 0xa0], 0x1bb
je 0x1004be8f
mov dx, word [0x100fa364]
mov word [ebp - 0x1c], dx
xor eax, eax
mov dword [ebp - 0x1a], eax
mov dword [ebp - 0x16], eax
mov ecx, dword [ebp - 0x170]
mov edx, dword [ecx + 0xa0]
push edx
push 0x100fa368
push 0xa
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCR120.dll_sprintf_s]
add esp, 0x10
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x34]
call fcn.1000f720
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x34]
call fcn.1000f720
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x234], esp
lea eax, [ebp - 0x34]
push eax
call fcn.10009f50
mov dword [ebp - 0x23c], eax
lea ecx, [ebp - 0xac]
push ecx
call sym.COMMON.dll_public:_static_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_CCodeOperation::UTF_8ToUnicode_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___
add esp, 0x1c
mov dword [ebp - 0x244], eax
mov byte [ebp - 4], 0xc
lea edx, [ebp - 0x180]
push edx
mov ecx, dword [ebp - 0x170]
add ecx, 0xb0
call fcn.10022cb0
jmp 0x1004befc
push 0
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x180]
call fcn.100471e0
lea ecx, [ebp - 0x254]
push ecx
mov ecx, dword [ebp - 0x170]
add ecx, 0xb0
call fcn.100270e0
push eax
lea ecx, [ebp - 0x180]
call fcn.10025c60
movzx edx, al
test edx, edx
je 0x1004c00b
lea ecx, [ebp - 0x180]
call fcn.100232a0
mov eax, dword [eax]
mov dword [ebp - 0x194], eax
mov ecx, dword [ebp - 0x194]
sub esp, 0x18
mov edx, esp
mov dword [ebp - 0x200], esp
push ecx
mov ecx, edx
call fcn.10009f50
mov dword [ebp - 0x240], eax
lea eax, [ebp - 0x7c]
push eax
call sym.COMMON.dll_public:_static_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_CCodeOperation::UTF_8ToUnicode_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___
add esp, 0x1c
mov dword [ebp - 0x208], eax
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x194]
add ecx, 0x18
sub esp, 0x18
mov edx, esp
mov dword [ebp - 0x230], esp
push ecx
mov ecx, edx
call fcn.10009f50
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x64]
push eax
call sym.COMMON.dll_public:_static_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_CCodeOperation::UTF_8ToUnicode_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___
add esp, 0x1c
mov dword [ebp - 0x250], eax
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x64]
call fcn.1000a260
push eax
lea ecx, [ebp - 0x7c]
call fcn.1000a260
push eax
lea ecx, [ebp - 0xac]
call fcn.1000a260
push eax
call dword [sym.imp.WININET.dll_InternetSetCookieW]
test eax, eax
jne 0x1004bfee
mov dword [ebp - 0x1d0], 0x100fa36c
push 0x1010887c
lea ecx, [ebp - 0x1d0]
push ecx
call sub.MSVCR120.dll__CxxThrowException
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x64]
call fcn.1000a1c0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x7c]
call fcn.1000a1c0
jmp 0x1004bee8
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0xac]
call fcn.1000a1c0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x34]
call fcn.1000a070
push 0
push 0
push 0
push 0
mov edx, dword [ebp - 0x170]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x1004c0f6
call fcn.1002e8a0
mov ecx, eax
call sym.COMMON.dll_public:_int___thiscall_CppSQLite3Exception::ErrorCode_void_const
test eax, eax
jg 0x1004c0db
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x10c]
push ecx
call sym.COMMON.dll_public:_static_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_CCodeOperation::IntToWString_int_
add esp, 8
mov dword [ebp - 0x1b0], eax
mov edx, dword [ebp - 0x1b0]
mov dword [ebp - 0x1f0], edx
mov byte [ebp - 4], 0xf
sub esp, 0x18
mov eax, esp
mov dword [ebp - 0x218], esp
mov ecx, dword [ebp - 0x1f0]
push ecx
push str.RequestGet__HttpSendRequest_Failed:
push eax
call fcn.100346d0
add esp, 0xc
mov dword [ebp - 0x1b8], eax
mov edx, dword [ebp - 0x1b8]
mov dword [ebp - 0x238], edx
mov byte [ebp - 4], 0x10
call fcn.1002e8a0
mov byte [ebp - 4], 0xf
mov ecx, eax
call fcn.1002e660
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x10c]
call fcn.1000a1c0
mov dword [ebp - 0x1d8], 0x100fa384
push 0x1010887c
lea eax, [ebp - 0x1d8]
push eax
call sub.MSVCR120.dll__CxxThrowException
mov byte [ebp - 0x175], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.1000a1c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.1000a1c0
mov al, byte [ebp - 0x175]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100ec36e
mov esp, ebp
pop ebp
ret 8