Function at 0x1004d9f0
Capabilities:
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f28f7
mov eax, dword fs:[0]
push eax
sub esp, 0x964
mov eax, dword [0x1011b040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x870], ecx
mov eax, dword [ebp - 0x870]
cmp dword [eax + 8], 0
je 0x1004da39
mov ecx, dword [ebp - 0x870]
cmp dword [ecx + 8], 0xffffffff
jne 0x1004da54
mov dword [ebp - 0x948], 0x100fa954
push 0x1010887c
lea edx, [ebp - 0x948]
push edx
call sub.MSVCR120.dll__CxxThrowException
call fcn.1002cc50
mov dword [ebp - 0x87c], eax
mov eax, dword [ebp - 0x870]
cmp dword [eax + 0xa4], 2
jne 0x1004da7a
mov dword [ebp - 0x8c8], 0x800000
jmp 0x1004da84
mov dword [ebp - 0x8c8], 0
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x868], ecx
cmp dword [ebp - 0x868], 0
jne 0x1004daa5
mov dword [ebp - 0x8d0], 0
jmp 0x1004db5d
mov edx, dword [ebp - 0x868]
mov dword [ebp - 0x880], edx
mov eax, dword [ebp - 0x880]
add eax, 1
mov dword [ebp - 0x940], eax
mov ecx, dword [ebp - 0x880]
mov dl, byte [ecx]
mov byte [ebp - 0x873], dl
add dword [ebp - 0x880], 1
cmp byte [ebp - 0x873], 0
jne 0x1004dac0
mov eax, dword [ebp - 0x880]
sub eax, dword [ebp - 0x940]
mov dword [ebp - 0x8e4], eax
mov ecx, dword [ebp - 0x8e4]
add ecx, 1
mov dword [ebp - 0x86c], ecx
cmp dword [ebp - 0x86c], 0x3fffffff
jle 0x1004db17
mov dword [ebp - 0x8a4], 0
jmp 0x1004db51
mov eax, dword [ebp - 0x86c]
shl eax, 1
call fcn.100ed140
mov dword [ebp - 0x950], esp
mov edx, dword [ebp - 0x87c]
push edx
mov eax, dword [ebp - 0x86c]
push eax
mov ecx, dword [ebp - 0x868]
push ecx
mov edx, dword [ebp - 0x950]
push edx
call fcn.100492f0
mov dword [ebp - 0x8a4], eax
mov eax, dword [ebp - 0x8a4]
mov dword [ebp - 0x8d0], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x868], ecx
cmp dword [ebp - 0x868], 0
jne 0x1004db7e
mov dword [ebp - 0x8d8], 0
jmp 0x1004dc36
mov edx, dword [ebp - 0x868]
mov dword [ebp - 0x888], edx
mov eax, dword [ebp - 0x888]
add eax, 1
mov dword [ebp - 0x958], eax
mov ecx, dword [ebp - 0x888]
mov dl, byte [ecx]
mov byte [ebp - 0x874], dl
add dword [ebp - 0x888], 1
cmp byte [ebp - 0x874], 0
jne 0x1004db99
mov eax, dword [ebp - 0x888]
sub eax, dword [ebp - 0x958]
mov dword [ebp - 0x924], eax
mov ecx, dword [ebp - 0x924]
add ecx, 1
mov dword [ebp - 0x86c], ecx
cmp dword [ebp - 0x86c], 0x3fffffff
jle 0x1004dbf0
mov dword [ebp - 0x8c0], 0
jmp 0x1004dc2a
mov eax, dword [ebp - 0x86c]
shl eax, 1
call fcn.100ed140
mov dword [ebp - 0x8ec], esp
mov edx, dword [ebp - 0x87c]
push edx
mov eax, dword [ebp - 0x86c]
push eax
mov ecx, dword [ebp - 0x868]
push ecx
mov edx, dword [ebp - 0x8ec]
push edx
call fcn.100492f0
mov dword [ebp - 0x8c0], eax
mov eax, dword [ebp - 0x8c0]
mov dword [ebp - 0x8d8], eax
push 0
mov ecx, dword [ebp - 0x8c8]
or ecx, 0x84000000
push ecx
push 0x1012268c
mov edx, dword [ebp - 0x8d0]
push edx
push 0x100fa8f4
mov eax, dword [ebp - 0x8d8]
push eax
push 0x100fa96c
mov ecx, dword [ebp - 0x870]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov edx, dword [ebp + 0xc]
cmp dword [edx], 0
je 0x1004dc8b
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0xffffffff
jne 0x1004dd41
call fcn.1002e8a0
mov ecx, eax
call sym.COMMON.dll_public:_int___thiscall_CppSQLite3Exception::ErrorCode_void_const
test eax, eax
jg 0x1004dd26
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x864]
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 - 0x944], eax
mov edx, dword [ebp - 0x944]
mov dword [ebp - 0x8f4], edx
mov dword [ebp - 4], 0
sub esp, 0x18
mov eax, esp
mov dword [ebp - 0x95c], esp
mov ecx, dword [ebp - 0x8f4]
push ecx
push str.SafeRequestGet__HttpOpenRequest_Failed:
push eax
call fcn.100346d0
add esp, 0xc
mov dword [ebp - 0x934], eax
mov edx, dword [ebp - 0x934]
mov dword [ebp - 0x964], edx
mov byte [ebp - 4], 1
call fcn.1002e8a0
mov byte [ebp - 4], 0
mov ecx, eax
call fcn.1002e660
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x864]
call fcn.1000a1c0
mov dword [ebp - 0x8fc], 0x100fa974
push 0x1010887c
lea eax, [ebp - 0x8fc]
push eax
call sub.MSVCR120.dll__CxxThrowException
mov dword [ebp - 0x890], 0x100fa9d8
mov ecx, dword [ebp - 0x890]
add ecx, 2
mov dword [ebp - 0x954], ecx
mov edx, dword [ebp - 0x890]
mov ax, word [edx]
mov word [ebp - 0x89a], ax
add dword [ebp - 0x890], 2
cmp word [ebp - 0x89a], 0
jne 0x1004dd5a
mov ecx, dword [ebp - 0x890]
sub ecx, dword [ebp - 0x954]
sar ecx, 1
mov dword [ebp - 0x904], ecx
push 0x80000000
mov edx, dword [ebp - 0x904]
push edx
push 0x100faa38
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
test eax, eax
jne 0x1004ddcb
mov dword [ebp - 0x93c], 0x100faa98
push 0x1010887c
lea edx, [ebp - 0x93c]
push edx
call sub.MSVCR120.dll__CxxThrowException
mov ecx, dword [ebp - 0x870]
add ecx, 0xb0
call sym.COMMON.dll_public:_int___thiscall_CppSQLite3Exception::ErrorCode_void_const
test eax, eax
jbe 0x1004e35d
lea ecx, [ebp - 0x834]
call fcn.10009fb0
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x870]
mov ecx, dword [eax + 0xa4]
mov dword [ebp - 0x8e0], ecx
cmp dword [ebp - 0x8e0], 1
je 0x1004de1c
cmp dword [ebp - 0x8e0], 2
je 0x1004de2e
jmp 0x1004de3e
push 0x100faab4
lea ecx, [ebp - 0x834]
call fcn.1001ca80
jmp 0x1004de3e
push 0x100faabc
lea ecx, [ebp - 0x834]
call fcn.1001ca80
mov ecx, dword [ebp - 0x870]
add ecx, 0x10
call fcn.1000d8c0
push eax
lea ecx, [ebp - 0x834]
call fcn.1000f720
mov edx, dword [ebp - 0x870]
cmp dword [edx + 0xa4], 1
jne 0x1004de76
mov eax, dword [ebp - 0x870]
cmp dword [eax + 0xa0], 0x50
je 0x1004ded9
mov ecx, dword [ebp - 0x870]
cmp dword [ecx + 0xa4], 2
jne 0x1004de97
mov edx, dword [ebp - 0x870]
cmp dword [edx + 0xa0], 0x1bb
je 0x1004ded9
mov ax, word [0x100faac8]
mov word [ebp - 0x1c], ax
xor ecx, ecx
mov dword [ebp - 0x1a], ecx
mov dword [ebp - 0x16], ecx
mov edx, dword [ebp - 0x870]
mov eax, dword [edx + 0xa0]
push eax
push 0x100faacc
push 0xa
lea ecx, [ebp - 0x1c]
push ecx
call dword [sym.imp.MSVCR120.dll_sprintf_s]
add esp, 0x10
lea edx, [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x834]
call fcn.1000f720
lea eax, [ebp - 0x8a0]
push eax
mov ecx, dword [ebp - 0x870]
add ecx, 0xb0
call fcn.10022cb0
jmp 0x1004df07
push 0
lea ecx, [ebp - 0x96c]
push ecx
lea ecx, [ebp - 0x8a0]
call fcn.100471e0
lea edx, [ebp - 0x960]
push edx
mov ecx, dword [ebp - 0x870]
add ecx, 0xb0
call fcn.100270e0
push eax
lea ecx, [ebp - 0x8a0]
call fcn.10025c60
movzx eax, al
test eax, eax
je 0x1004e34b
lea ecx, [ebp - 0x8a0]
call fcn.100232a0
mov ecx, dword [eax]
mov dword [ebp - 0x8dc], ecx
mov dword [ebp - 0x8bc], 0x400
mov edx, dword [0x100faad0]
mov dword [ebp - 0x81c], edx
push 0x7fc
push 0
lea eax, [ebp - 0x818]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov ecx, dword [ebp - 0x8dc]
call fcn.1000d8c0
mov dword [ebp - 0x868], eax
cmp dword [ebp - 0x868], 0
jne 0x1004df9e
mov dword [ebp - 0x8b4], 0
jmp 0x1004e056
mov ecx, dword [ebp - 0x868]
mov dword [ebp - 0x898], ecx
mov edx, dword [ebp - 0x898]
add edx, 1
mov dword [ebp - 0x90c], edx
mov eax, dword [ebp - 0x898]
mov cl, byte [eax]
mov byte [ebp - 0x871], cl
add dword [ebp - 0x898], 1
cmp byte [ebp - 0x871], 0
jne 0x1004dfb9
mov edx, dword [ebp - 0x898]
sub edx, dword [ebp - 0x90c]
mov dword [ebp - 0x920], edx
mov eax, dword [ebp - 0x920]
add eax, 1
mov dword [ebp - 0x86c], eax
cmp dword [ebp - 0x86c], 0x3fffffff
jle 0x1004e010
mov dword [ebp - 0x8ac], 0
jmp 0x1004e04a
mov eax, dword [ebp - 0x86c]
shl eax, 1
call fcn.100ed140
mov dword [ebp - 0x914], esp
mov ecx, dword [ebp - 0x87c]
push ecx
mov edx, dword [ebp - 0x86c]
push edx
mov eax, dword [ebp - 0x868]
push eax
mov ecx, dword [ebp - 0x914]
push ecx
call fcn.100492f0
mov dword [ebp - 0x8ac], eax
mov edx, dword [ebp - 0x8ac]
mov dword [ebp - 0x8b4], edx
lea ecx, [ebp - 0x834]
call fcn.1000d8c0
mov dword [ebp - 0x868], eax
cmp dword [ebp - 0x868], 0
jne 0x1004e07f
mov dword [ebp - 0x8cc], 0
jmp 0x1004e137
mov eax, dword [ebp - 0x868]
mov dword [ebp - 0x894], eax
mov ecx, dword [ebp - 0x894]
add ecx, 1
mov dword [ebp - 0x928], ecx
mov edx, dword [ebp - 0x894]
mov al, byte [edx]
mov byte [ebp - 0x872], al
add dword [ebp - 0x894], 1
cmp byte [ebp - 0x872], 0
jne 0x1004e09a
mov ecx, dword [ebp - 0x894]
sub ecx, dword [ebp - 0x928]
mov dword [ebp - 0x91c], ecx
mov edx, dword [ebp - 0x91c]
add edx, 1
mov dword [ebp - 0x86c], edx
cmp dword [ebp - 0x86c], 0x3fffffff
jle 0x1004e0f1
mov dword [ebp - 0x8d4], 0
jmp 0x1004e12b
mov eax, dword [ebp - 0x86c]
shl eax, 1
call fcn.100ed140
mov dword [ebp - 0x930], esp
mov eax, dword [ebp - 0x87c]
push eax
mov ecx, dword [ebp - 0x86c]
push ecx
mov edx, dword [ebp - 0x868]
push edx
mov eax, dword [ebp - 0x930]
push eax
call fcn.100492f0
mov dword [ebp - 0x8d4], eax
mov ecx, dword [ebp - 0x8d4]
mov dword [ebp - 0x8cc], ecx
lea edx, [ebp - 0x8bc]
push edx
lea eax, [ebp - 0x81c]
push eax
mov ecx, dword [ebp - 0x8b4]
push ecx
mov edx, dword [ebp - 0x8cc]
push edx
call dword [sym.imp.WININET.dll_InternetGetCookieW]
test eax, eax
je 0x1004e346
cmp dword [ebp - 0x8bc], 0
je 0x1004e346
mov ecx, dword [ebp - 0x8dc]
call fcn.1000d8c0
mov dword [ebp - 0x868], eax
cmp dword [ebp - 0x868], 0
jne 0x1004e197
mov dword [ebp - 0x8b0], 0
jmp 0x1004e24f
mov eax, dword [ebp - 0x868]
mov dword [ebp - 0x884], eax
mov ecx, dword [ebp - 0x884]
add ecx, 1
mov dword [ebp - 0x938], ecx
mov edx, dword [ebp - 0x884]
mov al, byte [edx]
mov byte [ebp - 0x875], al
add dword [ebp - 0x884], 1
cmp byte [ebp - 0x875], 0
jne 0x1004e1b2
mov ecx, dword [ebp - 0x884]
sub ecx, dword [ebp - 0x938]
mov dword [ebp - 0x94c], ecx
mov edx, dword [ebp - 0x94c]
add edx, 1
mov dword [ebp - 0x86c], edx
cmp dword [ebp - 0x86c], 0x3fffffff
jle 0x1004e209
mov dword [ebp - 0x8c4], 0
jmp 0x1004e243
mov eax, dword [ebp - 0x86c]
shl eax, 1
call fcn.100ed140
mov dword [ebp - 0x92c], esp
mov eax, dword [ebp - 0x87c]
push eax
mov ecx, dword [ebp - 0x86c]
push ecx
mov edx, dword [ebp - 0x868]
push edx
mov eax, dword [ebp - 0x92c]
push eax
call fcn.100492f0
mov dword [ebp - 0x8c4], eax
mov ecx, dword [ebp - 0x8c4]
mov dword [ebp - 0x8b0], ecx
lea ecx, [ebp - 0x834]
call fcn.1000d8c0
mov dword [ebp - 0x868], eax
cmp dword [ebp - 0x868], 0
jne 0x1004e278
mov dword [ebp - 0x8b8], 0
jmp 0x1004e330
mov edx, dword [ebp - 0x868]
mov dword [ebp - 0x88c], edx
mov eax, dword [ebp - 0x88c]
add eax, 1
mov dword [ebp - 0x8e8], eax
mov ecx, dword [ebp - 0x88c]
mov dl, byte [ecx]
mov byte [ebp - 0x876], dl
add dword [ebp - 0x88c], 1
cmp byte [ebp - 0x876], 0
jne 0x1004e293
mov eax, dword [ebp - 0x88c]
sub eax, dword [ebp - 0x8e8]
mov dword [ebp - 0x8f0], eax
mov ecx, dword [ebp - 0x8f0]
add ecx, 1
mov dword [ebp - 0x86c], ecx
cmp dword [ebp - 0x86c], 0x3fffffff
jle 0x1004e2ea
mov dword [ebp - 0x8a8], 0
jmp 0x1004e324
mov eax, dword [ebp - 0x86c]
shl eax, 1
call fcn.100ed140
mov dword [ebp - 0x8f8], esp
mov edx, dword [ebp - 0x87c]
push edx
mov eax, dword [ebp - 0x86c]
push eax
mov ecx, dword [ebp - 0x868]
push ecx
mov edx, dword [ebp - 0x8f8]
push edx
call fcn.100492f0
mov dword [ebp - 0x8a8], eax
mov eax, dword [ebp - 0x8a8]
mov dword [ebp - 0x8b8], eax
push 0
mov ecx, dword [ebp - 0x8b0]
push ecx
mov edx, dword [ebp - 0x8b8]
push edx
call dword [sym.imp.WININET.dll_InternetSetCookieW]
jmp 0x1004def3
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x834]
call fcn.1000a070
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x1004e42f
call fcn.1002e8a0
mov ecx, eax
call sym.COMMON.dll_public:_int___thiscall_CppSQLite3Exception::ErrorCode_void_const
test eax, eax
jg 0x1004e414
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [ebp - 0x84c]
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 - 0x900], eax
mov eax, dword [ebp - 0x900]
mov dword [ebp - 0x908], eax
mov dword [ebp - 4], 3
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x968], esp
mov edx, dword [ebp - 0x908]
push edx
push str.SafeRequestGet__HttpSendRequest_Failed:
push ecx
call fcn.100346d0
add esp, 0xc
mov dword [ebp - 0x910], eax
mov eax, dword [ebp - 0x910]
mov dword [ebp - 0x970], eax
mov byte [ebp - 4], 4
call fcn.1002e8a0
mov byte [ebp - 4], 3
mov ecx, eax
call fcn.1002e660
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x84c]
call fcn.1000a1c0
mov dword [ebp - 0x918], 0x100faad4
push 0x1010887c
lea ecx, [ebp - 0x918]
push ecx
call sub.MSVCR120.dll__CxxThrowException
mov al, 1
lea esp, [ebp - 0x974]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100ec36e
mov esp, ebp
pop ebp
ret 0xc