Function at 0x1004f8f0
Capabilities:
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f2a2e
mov eax, dword fs:[0]
push eax
sub esp, 0x164
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 - 0x70], ecx
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0xc0], 0
mov eax, dword [ebp - 0x70]
cmp dword [eax + 8], 0
je 0x1004f941
mov ecx, dword [ebp - 0x70]
cmp dword [ecx + 8], 0xffffffff
jne 0x1004f95c
mov dword [ebp - 0x150], 0x100faf04
push 0x1010887c
lea edx, [ebp - 0x150]
push edx
call sub.MSVCR120.dll__CxxThrowException
call fcn.1002cc50
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x70]
cmp dword [eax + 0xa4], 2
jne 0x1004f97c
mov dword [ebp - 0xd0], 0x800000
jmp 0x1004f986
mov dword [ebp - 0xd0], 0
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x6c], ecx
cmp dword [ebp - 0x6c], 0
jne 0x1004f9a1
mov dword [ebp - 0xd8], 0
jmp 0x1004fa3e
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0x9c], edx
mov eax, dword [ebp - 0x9c]
add eax, 1
mov dword [ebp - 0x148], eax
mov ecx, dword [ebp - 0x9c]
mov dl, byte [ecx]
mov byte [ebp - 0x72], dl
add dword [ebp - 0x9c], 1
cmp byte [ebp - 0x72], 0
jne 0x1004f9b9
mov eax, dword [ebp - 0x9c]
sub eax, dword [ebp - 0x148]
mov dword [ebp - 0xe4], eax
mov ecx, dword [ebp - 0xe4]
add ecx, 1
mov dword [ebp - 0x68], ecx
cmp dword [ebp - 0x68], 0x3fffffff
jle 0x1004fa04
mov dword [ebp - 0xb4], 0
jmp 0x1004fa32
mov eax, dword [ebp - 0x68]
shl eax, 1
call fcn.100ed140
mov dword [ebp - 0x158], esp
mov edx, dword [ebp - 0x80]
push edx
mov eax, dword [ebp - 0x68]
push eax
mov ecx, dword [ebp - 0x6c]
push ecx
mov edx, dword [ebp - 0x158]
push edx
call fcn.100492f0
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0xd8], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x6c], ecx
cmp dword [ebp - 0x6c], 0
jne 0x1004fa59
mov dword [ebp - 0xe0], 0
jmp 0x1004faf6
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0x90], edx
mov eax, dword [ebp - 0x90]
add eax, 1
mov dword [ebp - 0x12c], eax
mov ecx, dword [ebp - 0x90]
mov dl, byte [ecx]
mov byte [ebp - 0x74], dl
add dword [ebp - 0x90], 1
cmp byte [ebp - 0x74], 0
jne 0x1004fa71
mov eax, dword [ebp - 0x90]
sub eax, dword [ebp - 0x12c]
mov dword [ebp - 0xec], eax
mov ecx, dword [ebp - 0xec]
add ecx, 1
mov dword [ebp - 0x68], ecx
cmp dword [ebp - 0x68], 0x3fffffff
jle 0x1004fabc
mov dword [ebp - 0xc8], 0
jmp 0x1004faea
mov eax, dword [ebp - 0x68]
shl eax, 1
call fcn.100ed140
mov dword [ebp - 0x144], esp
mov edx, dword [ebp - 0x80]
push edx
mov eax, dword [ebp - 0x68]
push eax
mov ecx, dword [ebp - 0x6c]
push ecx
mov edx, dword [ebp - 0x144]
push edx
call fcn.100492f0
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0xe0], eax
push 0
mov ecx, dword [ebp - 0xd0]
or ecx, 0x4400040
push ecx
push 0x1012269c
mov edx, dword [ebp - 0xd8]
push edx
push 0x100fae34
mov eax, dword [ebp - 0xe0]
push eax
push 0x100fae94
mov ecx, dword [ebp - 0x70]
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 0x1004fb48
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0xffffffff
jne 0x1004fbf8
call fcn.1002e8a0
mov ecx, eax
call sym.COMMON.dll_public:_int___thiscall_CppSQLite3Exception::ErrorCode_void_const
test eax, eax
jg 0x1004fbdd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x4c]
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 - 0xf4], eax
mov edx, dword [ebp - 0xf4]
mov dword [ebp - 0x134], edx
mov dword [ebp - 4], 0
sub esp, 0x18
mov eax, esp
mov dword [ebp - 0x15c], esp
mov ecx, dword [ebp - 0x134]
push ecx
push str.SafeRequestPost1__HttpOpenRequest_Failed:
push eax
call fcn.100346d0
add esp, 0xc
mov dword [ebp - 0xfc], eax
mov edx, dword [ebp - 0xfc]
mov dword [ebp - 0x16c], 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 - 0x4c]
call fcn.1000a1c0
mov dword [ebp - 0x154], 0x100faf1c
push 0x1010887c
lea eax, [ebp - 0x154]
push eax
call sub.MSVCR120.dll__CxxThrowException
mov dword [ebp - 0x8c], 0x100fafa0
mov ecx, dword [ebp - 0x8c]
add ecx, 2
mov dword [ebp - 0x104], ecx
mov edx, dword [ebp - 0x8c]
mov ax, word [edx]
mov word [ebp - 0xa6], ax
add dword [ebp - 0x8c], 2
cmp word [ebp - 0xa6], 0
jne 0x1004fc11
mov ecx, dword [ebp - 0x8c]
sub ecx, dword [ebp - 0x104]
sar ecx, 1
mov dword [ebp - 0x13c], ecx
push 0x80000000
mov edx, dword [ebp - 0x13c]
push edx
push 0x100fb000
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
test eax, eax
jne 0x1004fc82
mov dword [ebp - 0x10c], 0x100faf84
push 0x1010887c
lea edx, [ebp - 0x10c]
push edx
call sub.MSVCR120.dll__CxxThrowException
mov ecx, dword [ebp - 0x70]
add ecx, 0xb0
call sym.COMMON.dll_public:_int___thiscall_CppSQLite3Exception::ErrorCode_void_const
test eax, eax
jbe 0x1005006d
lea ecx, [ebp - 0x34]
call fcn.10009fb0
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax + 0xa4]
mov dword [ebp - 0xac], ecx
cmp dword [ebp - 0xac], 1
je 0x1004fcca
cmp dword [ebp - 0xac], 2
je 0x1004fcd9
jmp 0x1004fce6
push 0x100fb060
lea ecx, [ebp - 0x34]
call fcn.1001ca80
jmp 0x1004fce6
push 0x100fb068
lea ecx, [ebp - 0x34]
call fcn.1001ca80
mov ecx, dword [ebp - 0x70]
add ecx, 0x10
call fcn.1000d8c0
push eax
lea ecx, [ebp - 0x34]
call fcn.1000f720
mov edx, dword [ebp - 0x70]
cmp dword [edx + 0xa4], 1
jne 0x1004fd12
mov eax, dword [ebp - 0x70]
cmp dword [eax + 0xa0], 0x50
je 0x1004fd69
mov ecx, dword [ebp - 0x70]
cmp dword [ecx + 0xa4], 2
jne 0x1004fd2d
mov edx, dword [ebp - 0x70]
cmp dword [edx + 0xa0], 0x1bb
je 0x1004fd69
mov ax, word [0x100fb074]
mov word [ebp - 0x1c], ax
xor ecx, ecx
mov dword [ebp - 0x1a], ecx
mov dword [ebp - 0x16], ecx
mov edx, dword [ebp - 0x70]
mov eax, dword [edx + 0xa0]
push eax
push 0x100fb078
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 - 0x34]
call fcn.1000f720
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x34]
call fcn.1000f720
lea ecx, [ebp - 0xa4]
push ecx
mov ecx, dword [ebp - 0x70]
add ecx, 0xb0
call fcn.10022cb0
jmp 0x1004fda0
push 0
lea edx, [ebp - 0x160]
push edx
lea ecx, [ebp - 0xa4]
call fcn.100471e0
lea eax, [ebp - 0x168]
push eax
mov ecx, dword [ebp - 0x70]
add ecx, 0xb0
call fcn.100270e0
push eax
lea ecx, [ebp - 0xa4]
call fcn.10025c60
movzx ecx, al
test ecx, ecx
je 0x1005005e
lea ecx, [ebp - 0xa4]
call fcn.100232a0
mov edx, dword [eax]
mov dword [ebp - 0xbc], edx
mov ecx, dword [ebp - 0xbc]
add ecx, 0x18
call fcn.1000d8c0
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
jne 0x1004fe05
mov dword [ebp - 0xd4], 0
jmp 0x1004fea2
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x94], eax
mov ecx, dword [ebp - 0x94]
add ecx, 1
mov dword [ebp - 0x14c], ecx
mov edx, dword [ebp - 0x94]
mov al, byte [edx]
mov byte [ebp - 0x71], al
add dword [ebp - 0x94], 1
cmp byte [ebp - 0x71], 0
jne 0x1004fe1d
mov ecx, dword [ebp - 0x94]
sub ecx, dword [ebp - 0x14c]
mov dword [ebp - 0x114], ecx
mov edx, dword [ebp - 0x114]
add edx, 1
mov dword [ebp - 0x68], edx
cmp dword [ebp - 0x68], 0x3fffffff
jle 0x1004fe68
mov dword [ebp - 0xcc], 0
jmp 0x1004fe96
mov eax, dword [ebp - 0x68]
shl eax, 1
call fcn.100ed140
mov dword [ebp - 0x128], esp
mov eax, dword [ebp - 0x80]
push eax
mov ecx, dword [ebp - 0x68]
push ecx
mov edx, dword [ebp - 0x6c]
push edx
mov eax, dword [ebp - 0x128]
push eax
call fcn.100492f0
mov dword [ebp - 0xcc], eax
mov ecx, dword [ebp - 0xcc]
mov dword [ebp - 0xd4], ecx
mov ecx, dword [ebp - 0xbc]
call fcn.1000d8c0
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
jne 0x1004fec5
mov dword [ebp - 0xb0], 0
jmp 0x1004ff62
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0x88], edx
mov eax, dword [ebp - 0x88]
add eax, 1
mov dword [ebp - 0x11c], eax
mov ecx, dword [ebp - 0x88]
mov dl, byte [ecx]
mov byte [ebp - 0x73], dl
add dword [ebp - 0x88], 1
cmp byte [ebp - 0x73], 0
jne 0x1004fedd
mov eax, dword [ebp - 0x88]
sub eax, dword [ebp - 0x11c]
mov dword [ebp - 0x130], eax
mov ecx, dword [ebp - 0x130]
add ecx, 1
mov dword [ebp - 0x68], ecx
cmp dword [ebp - 0x68], 0x3fffffff
jle 0x1004ff28
mov dword [ebp - 0xdc], 0
jmp 0x1004ff56
mov eax, dword [ebp - 0x68]
shl eax, 1
call fcn.100ed140
mov dword [ebp - 0x124], esp
mov edx, dword [ebp - 0x80]
push edx
mov eax, dword [ebp - 0x68]
push eax
mov ecx, dword [ebp - 0x6c]
push ecx
mov edx, dword [ebp - 0x124]
push edx
call fcn.100492f0
mov dword [ebp - 0xdc], eax
mov eax, dword [ebp - 0xdc]
mov dword [ebp - 0xb0], eax
lea ecx, [ebp - 0x34]
call fcn.1000d8c0
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
jne 0x1004ff82
mov dword [ebp - 0xb8], 0
jmp 0x1005001f
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x98], ecx
mov edx, dword [ebp - 0x98]
add edx, 1
mov dword [ebp - 0x138], edx
mov eax, dword [ebp - 0x98]
mov cl, byte [eax]
mov byte [ebp - 0x75], cl
add dword [ebp - 0x98], 1
cmp byte [ebp - 0x75], 0
jne 0x1004ff9a
mov edx, dword [ebp - 0x98]
sub edx, dword [ebp - 0x138]
mov dword [ebp - 0x140], edx
mov eax, dword [ebp - 0x140]
add eax, 1
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0x3fffffff
jle 0x1004ffe5
mov dword [ebp - 0xc4], 0
jmp 0x10050013
mov eax, dword [ebp - 0x68]
shl eax, 1
call fcn.100ed140
mov dword [ebp - 0xe8], esp
mov ecx, dword [ebp - 0x80]
push ecx
mov edx, dword [ebp - 0x68]
push edx
mov eax, dword [ebp - 0x6c]
push eax
mov ecx, dword [ebp - 0xe8]
push ecx
call fcn.100492f0
mov dword [ebp - 0xc4], eax
mov edx, dword [ebp - 0xc4]
mov dword [ebp - 0xb8], edx
mov eax, dword [ebp - 0xd4]
push eax
mov ecx, dword [ebp - 0xb0]
push ecx
mov edx, dword [ebp - 0xb8]
push edx
call dword [sym.imp.WININET.dll_InternetSetCookieW]
test eax, eax
jne 0x10050059
mov dword [ebp - 0xf0], 0x100fb07c
push 0x1010887c
lea eax, [ebp - 0xf0]
push eax
call sub.MSVCR120.dll__CxxThrowException
jmp 0x1004fd8c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.1000a070
mov ecx, dword [ebp - 0x70]
call sym.COMMON.dll_protected:_unsigned_long_int___thiscall_W3Client::GetPostArgumentsLength_void_
add eax, 1
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x70]
call sym.COMMON.dll_protected:_unsigned_long_int___thiscall_W3Client::GetPostArgumentsLength_void_
add eax, 1
push eax
mov ecx, dword [ebp - 0x7c]
push ecx
mov ecx, dword [ebp - 0x70]
call sym.COMMON.dll_protected:_unsigned_long_int___thiscall_W3Client::GetPostData_unsigned_char___unsigned_long_int_
mov dword [ebp - 0xc0], eax
mov edx, dword [0x10122678]
mov dword [ebp - 0x84], edx
mov eax, dword [ebp - 0x84]
add eax, 2
mov dword [ebp - 0xf8], eax
mov ecx, dword [ebp - 0x84]
mov dx, word [ecx]
mov word [ebp - 0x9e], dx
add dword [ebp - 0x84], 2
cmp word [ebp - 0x9e], 0
jne 0x100500c4
mov eax, dword [ebp - 0x84]
sub eax, dword [ebp - 0xf8]
sar eax, 1
mov dword [ebp - 0x100], eax
mov ecx, dword [ebp - 0xc0]
push ecx
mov edx, dword [ebp - 0x7c]
push edx
mov eax, dword [ebp - 0x100]
push eax
mov ecx, dword [0x10122678]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x100501fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f88
je 0x100501fa
call fcn.1002e8a0
mov ecx, eax
call sym.COMMON.dll_public:_int___thiscall_CppSQLite3Exception::ErrorCode_void_const
test eax, eax
jg 0x100501cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x64]
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 - 0x108], eax
mov edx, dword [ebp - 0x108]
mov dword [ebp - 0x110], edx
mov dword [ebp - 4], 3
sub esp, 0x18
mov eax, esp
mov dword [ebp - 0x170], esp
mov ecx, dword [ebp - 0x110]
push ecx
push str.SafeRequestPost1__HttpSendRequest_Failed:
push eax
call fcn.100346d0
add esp, 0xc
mov dword [ebp - 0x118], eax
mov edx, dword [ebp - 0x118]
mov dword [ebp - 0x164], edx
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 - 0x64]
call fcn.1000a1c0
mov eax, dword [ebp - 0x7c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 0x120], 0x100fb094
push 0x1010887c
lea ecx, [ebp - 0x120]
push ecx
call sub.MSVCR120.dll__CxxThrowException
mov edx, dword [ebp - 0x7c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, 1
lea esp, [ebp - 0x174]
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