Function at 0x1004ed70
Capabilities:
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f29cc
mov eax, dword fs:[0]
push eax
sub esp, 0x1d0
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 - 0xc8], ecx
push 0x100fab98
lea ecx, [ebp - 0x4c]
call fcn.10014010
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0xc8]
add ecx, 0xd8
call fcn.100140a0
movzx eax, al
test eax, eax
jne 0x1004ee87
mov ecx, dword [ebp - 0xc8]
add ecx, 0xd8
push ecx
lea edx, [ebp - 0x7c]
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::s2ws_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__
add esp, 8
mov dword [ebp - 0x1c0], eax
mov eax, dword [ebp - 0x1c0]
mov dword [ebp - 0x190], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x190]
push ecx
push 0x100fac04
lea edx, [ebp - 0x94]
push edx
call fcn.100346d0
add esp, 0xc
mov dword [ebp - 0x198], eax
mov eax, dword [ebp - 0x198]
mov dword [ebp - 0x1a0], eax
mov byte [ebp - 4], 2
push 0x100fabfc
mov ecx, dword [ebp - 0x1a0]
push ecx
lea edx, [ebp - 0xc4]
push edx
call fcn.100245b0
add esp, 0xc
mov dword [ebp - 0x1a8], eax
mov eax, dword [ebp - 0x1a8]
push eax
lea ecx, [ebp - 0x4c]
call fcn.1000a110
lea ecx, [ebp - 0xc4]
call fcn.1000a1c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x94]
call fcn.1000a1c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x7c]
call fcn.1000a1c0
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0x11c], 0
mov ecx, dword [ebp - 0xc8]
cmp dword [ecx + 8], 0
je 0x1004eeb3
mov edx, dword [ebp - 0xc8]
cmp dword [edx + 8], 0xffffffff
jne 0x1004eece
mov dword [ebp - 0x1b0], 0x100fac24
push 0x1010887c
lea eax, [ebp - 0x1b0]
push eax
call sub.MSVCR120.dll__CxxThrowException
call fcn.1002cc50
mov dword [ebp - 0xf8], eax
mov ecx, dword [ebp - 0xc8]
cmp dword [ecx + 0xa4], 2
jne 0x1004eef4
mov dword [ebp - 0x108], 0x800000
jmp 0x1004eefe
mov dword [ebp - 0x108], 0
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0xcc], edx
cmp dword [ebp - 0xcc], 0
jne 0x1004ef1f
mov dword [ebp - 0x110], 0
jmp 0x1004efd7
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0xf4], eax
mov ecx, dword [ebp - 0xf4]
add ecx, 1
mov dword [ebp - 0x1b8], ecx
mov edx, dword [ebp - 0xf4]
mov al, byte [edx]
mov byte [ebp - 0xd2], al
add dword [ebp - 0xf4], 1
cmp byte [ebp - 0xd2], 0
jne 0x1004ef3a
mov ecx, dword [ebp - 0xf4]
sub ecx, dword [ebp - 0x1b8]
mov dword [ebp - 0x13c], ecx
mov edx, dword [ebp - 0x13c]
add edx, 1
mov dword [ebp - 0xd0], edx
cmp dword [ebp - 0xd0], 0x3fffffff
jle 0x1004ef91
mov dword [ebp - 0x12c], 0
jmp 0x1004efcb
mov eax, dword [ebp - 0xd0]
shl eax, 1
call fcn.100ed140
mov dword [ebp - 0x1ac], esp
mov eax, dword [ebp - 0xf8]
push eax
mov ecx, dword [ebp - 0xd0]
push ecx
mov edx, dword [ebp - 0xcc]
push edx
mov eax, dword [ebp - 0x1ac]
push eax
call fcn.100492f0
mov dword [ebp - 0x12c], eax
mov ecx, dword [ebp - 0x12c]
mov dword [ebp - 0x110], ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 0xcc], edx
cmp dword [ebp - 0xcc], 0
jne 0x1004eff8
mov dword [ebp - 0x118], 0
jmp 0x1004f0b0
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0xec], eax
mov ecx, dword [ebp - 0xec]
add ecx, 1
mov dword [ebp - 0x1b4], ecx
mov edx, dword [ebp - 0xec]
mov al, byte [edx]
mov byte [ebp - 0xd1], al
add dword [ebp - 0xec], 1
cmp byte [ebp - 0xd1], 0
jne 0x1004f013
mov ecx, dword [ebp - 0xec]
sub ecx, dword [ebp - 0x1b4]
mov dword [ebp - 0x148], ecx
mov edx, dword [ebp - 0x148]
add edx, 1
mov dword [ebp - 0xd0], edx
cmp dword [ebp - 0xd0], 0x3fffffff
jle 0x1004f06a
mov dword [ebp - 0x104], 0
jmp 0x1004f0a4
mov eax, dword [ebp - 0xd0]
shl eax, 1
call fcn.100ed140
mov dword [ebp - 0x194], esp
mov eax, dword [ebp - 0xf8]
push eax
mov ecx, dword [ebp - 0xd0]
push ecx
mov edx, dword [ebp - 0xcc]
push edx
mov eax, dword [ebp - 0x194]
push eax
call fcn.100492f0
mov dword [ebp - 0x104], eax
mov ecx, dword [ebp - 0x104]
mov dword [ebp - 0x118], ecx
push 0
mov edx, dword [ebp - 0x108]
or edx, 0x4400040
push edx
push 0x1012267c
mov eax, dword [ebp - 0x110]
push eax
push 0x100fab84
mov ecx, dword [ebp - 0x118]
push ecx
push 0x100fac3c
mov edx, dword [ebp - 0xc8]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov ecx, dword [ebp - 0xc8]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 0xc8]
cmp dword [edx + 0xc], 0
je 0x1004f111
mov eax, dword [ebp - 0xc8]
cmp dword [eax + 0xc], 0xffffffff
jne 0x1004f1c1
call fcn.1002e8a0
mov ecx, eax
call sym.COMMON.dll_public:_int___thiscall_CppSQLite3Exception::ErrorCode_void_const
test eax, eax
jg 0x1004f1a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 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::IntToWString_int_
add esp, 8
mov dword [ebp - 0x150], eax
mov edx, dword [ebp - 0x150]
mov dword [ebp - 0x16c], edx
mov byte [ebp - 4], 3
sub esp, 0x18
mov eax, esp
mov dword [ebp - 0x1c4], esp
mov ecx, dword [ebp - 0x16c]
push ecx
push str.RequestPost__HttpOpenRequest_Failed:
push eax
call fcn.100346d0
add esp, 0xc
mov dword [ebp - 0x158], eax
mov edx, dword [ebp - 0x158]
mov dword [ebp - 0x1d4], edx
mov byte [ebp - 4], 4
call fcn.1002e8a0
mov byte [ebp - 4], 3
mov ecx, eax
call fcn.1002e660
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xac]
call fcn.1000a1c0
mov dword [ebp - 0x170], 0x100fac94
push 0x1010887c
lea eax, [ebp - 0x170]
push eax
call sub.MSVCR120.dll__CxxThrowException
mov dword [ebp - 0xe0], 0x100faca8
mov ecx, dword [ebp - 0xe0]
add ecx, 2
mov dword [ebp - 0x160], ecx
mov edx, dword [ebp - 0xe0]
mov ax, word [edx]
mov word [ebp - 0xfa], ax
add dword [ebp - 0xe0], 2
cmp word [ebp - 0xfa], 0
jne 0x1004f1da
mov ecx, dword [ebp - 0xe0]
sub ecx, dword [ebp - 0x160]
sar ecx, 1
mov dword [ebp - 0x178], ecx
push 0x80000000
mov edx, dword [ebp - 0x178]
push edx
push 0x100fad08
mov eax, dword [ebp - 0xc8]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
test eax, eax
jne 0x1004f24f
mov dword [ebp - 0x168], 0x100fad68
push 0x1010887c
lea edx, [ebp - 0x168]
push edx
call sub.MSVCR120.dll__CxxThrowException
mov ecx, dword [ebp - 0xc8]
add ecx, 0xbc
call fcn.100140a0
movzx eax, al
test eax, eax
jne 0x1004f2dd
push 0x10000000
push 0xffffffffffffffff
mov ecx, dword [ebp - 0xc8]
add ecx, 0xbc
call fcn.1000d8c0
push eax
mov ecx, dword [ebp - 0xc8]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
test eax, eax
jne 0x1004f2cc
mov ecx, dword [ebp - 0xc8]
add ecx, 0xbc
call fcn.1003eb50
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1dc], eax
mov dword [ebp - 0x180], 0x100fad84
push 0x1010887c
lea eax, [ebp - 0x180]
push eax
call sub.MSVCR120.dll__CxxThrowException
mov ecx, dword [ebp - 0xc8]
add ecx, 0xbc
call fcn.1003eb50
mov ecx, dword [ebp - 0xc8]
add ecx, 0xb0
call sym.COMMON.dll_public:_int___thiscall_CppSQLite3Exception::ErrorCode_void_const
test eax, eax
jbe 0x1004f744
lea ecx, [ebp - 0x34]
call fcn.10009fb0
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0xc8]
mov edx, dword [ecx + 0xa4]
mov dword [ebp - 0x120], edx
cmp dword [ebp - 0x120], 1
je 0x1004f328
cmp dword [ebp - 0x120], 2
je 0x1004f337
jmp 0x1004f344
push 0x100fada0
lea ecx, [ebp - 0x34]
call fcn.1001ca80
jmp 0x1004f344
push 0x100fada8
lea ecx, [ebp - 0x34]
call fcn.1001ca80
mov ecx, dword [ebp - 0xc8]
add ecx, 0x10
call fcn.1000d8c0
push eax
lea ecx, [ebp - 0x34]
call fcn.1000f720
mov eax, dword [ebp - 0xc8]
cmp dword [eax + 0xa4], 1
jne 0x1004f379
mov ecx, dword [ebp - 0xc8]
cmp dword [ecx + 0xa0], 0x50
je 0x1004f3da
mov edx, dword [ebp - 0xc8]
cmp dword [edx + 0xa4], 2
jne 0x1004f39a
mov eax, dword [ebp - 0xc8]
cmp dword [eax + 0xa0], 0x1bb
je 0x1004f3da
mov cx, word [0x100fadb4]
mov word [ebp - 0x1c], cx
xor edx, edx
mov dword [ebp - 0x1a], edx
mov dword [ebp - 0x16], edx
mov eax, dword [ebp - 0xc8]
mov ecx, dword [eax + 0xa0]
push ecx
push 0x100fadb8
push 0xa
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.MSVCR120.dll_sprintf_s]
add esp, 0x10
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x34]
call fcn.1000f720
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x34]
call fcn.1000f720
lea edx, [ebp - 0x100]
push edx
mov ecx, dword [ebp - 0xc8]
add ecx, 0xb0
call fcn.10022cb0
jmp 0x1004f414
push 0
lea eax, [ebp - 0x1d8]
push eax
lea ecx, [ebp - 0x100]
call fcn.100471e0
lea ecx, [ebp - 0x1d0]
push ecx
mov ecx, dword [ebp - 0xc8]
add ecx, 0xb0
call fcn.100270e0
push eax
lea ecx, [ebp - 0x100]
call fcn.10025c60
movzx edx, al
test edx, edx
je 0x1004f738
lea ecx, [ebp - 0x100]
call fcn.100232a0
mov eax, dword [eax]
mov dword [ebp - 0x130], eax
mov ecx, dword [ebp - 0x130]
add ecx, 0x18
call fcn.1000d8c0
mov dword [ebp - 0xcc], eax
cmp dword [ebp - 0xcc], 0
jne 0x1004f482
mov dword [ebp - 0x124], 0
jmp 0x1004f53a
mov ecx, dword [ebp - 0xcc]
mov dword [ebp - 0xdc], ecx
mov edx, dword [ebp - 0xdc]
add edx, 1
mov dword [ebp - 0x188], edx
mov eax, dword [ebp - 0xdc]
mov cl, byte [eax]
mov byte [ebp - 0xd4], cl
add dword [ebp - 0xdc], 1
cmp byte [ebp - 0xd4], 0
jne 0x1004f49d
mov edx, dword [ebp - 0xdc]
sub edx, dword [ebp - 0x188]
mov dword [ebp - 0x174], edx
mov eax, dword [ebp - 0x174]
add eax, 1
mov dword [ebp - 0xd0], eax
cmp dword [ebp - 0xd0], 0x3fffffff
jle 0x1004f4f4
mov dword [ebp - 0x128], 0
jmp 0x1004f52e
mov eax, dword [ebp - 0xd0]
shl eax, 1
call fcn.100ed140
mov dword [ebp - 0x19c], esp
mov ecx, dword [ebp - 0xf8]
push ecx
mov edx, dword [ebp - 0xd0]
push edx
mov eax, dword [ebp - 0xcc]
push eax
mov ecx, dword [ebp - 0x19c]
push ecx
call fcn.100492f0
mov dword [ebp - 0x128], eax
mov edx, dword [ebp - 0x128]
mov dword [ebp - 0x124], edx
mov ecx, dword [ebp - 0x130]
call fcn.1000d8c0
mov dword [ebp - 0xcc], eax
cmp dword [ebp - 0xcc], 0
jne 0x1004f563
mov dword [ebp - 0x114], 0
jmp 0x1004f61b
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0xe8], eax
mov ecx, dword [ebp - 0xe8]
add ecx, 1
mov dword [ebp - 0x17c], ecx
mov edx, dword [ebp - 0xe8]
mov al, byte [edx]
mov byte [ebp - 0xd6], al
add dword [ebp - 0xe8], 1
cmp byte [ebp - 0xd6], 0
jne 0x1004f57e
mov ecx, dword [ebp - 0xe8]
sub ecx, dword [ebp - 0x17c]
mov dword [ebp - 0x1bc], ecx
mov edx, dword [ebp - 0x1bc]
add edx, 1
mov dword [ebp - 0xd0], edx
cmp dword [ebp - 0xd0], 0x3fffffff
jle 0x1004f5d5
mov dword [ebp - 0x138], 0
jmp 0x1004f60f
mov eax, dword [ebp - 0xd0]
shl eax, 1
call fcn.100ed140
mov dword [ebp - 0x184], esp
mov eax, dword [ebp - 0xf8]
push eax
mov ecx, dword [ebp - 0xd0]
push ecx
mov edx, dword [ebp - 0xcc]
push edx
mov eax, dword [ebp - 0x184]
push eax
call fcn.100492f0
mov dword [ebp - 0x138], eax
mov ecx, dword [ebp - 0x138]
mov dword [ebp - 0x114], ecx
lea ecx, [ebp - 0x34]
call fcn.1000d8c0
mov dword [ebp - 0xcc], eax
cmp dword [ebp - 0xcc], 0
jne 0x1004f641
mov dword [ebp - 0x134], 0
jmp 0x1004f6f9
mov edx, dword [ebp - 0xcc]
mov dword [ebp - 0xf0], edx
mov eax, dword [ebp - 0xf0]
add eax, 1
mov dword [ebp - 0x1a4], eax
mov ecx, dword [ebp - 0xf0]
mov dl, byte [ecx]
mov byte [ebp - 0xd5], dl
add dword [ebp - 0xf0], 1
cmp byte [ebp - 0xd5], 0
jne 0x1004f65c
mov eax, dword [ebp - 0xf0]
sub eax, dword [ebp - 0x1a4]
mov dword [ebp - 0x18c], eax
mov ecx, dword [ebp - 0x18c]
add ecx, 1
mov dword [ebp - 0xd0], ecx
cmp dword [ebp - 0xd0], 0x3fffffff
jle 0x1004f6b3
mov dword [ebp - 0x10c], 0
jmp 0x1004f6ed
mov eax, dword [ebp - 0xd0]
shl eax, 1
call fcn.100ed140
mov dword [ebp - 0x140], esp
mov edx, dword [ebp - 0xf8]
push edx
mov eax, dword [ebp - 0xd0]
push eax
mov ecx, dword [ebp - 0xcc]
push ecx
mov edx, dword [ebp - 0x140]
push edx
call fcn.100492f0
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp - 0x10c]
mov dword [ebp - 0x134], eax
mov ecx, dword [ebp - 0x124]
push ecx
mov edx, dword [ebp - 0x114]
push edx
mov eax, dword [ebp - 0x134]
push eax
call dword [sym.imp.WININET.dll_InternetSetCookieW]
test eax, eax
jne 0x1004f733
mov dword [ebp - 0x144], 0x100fadbc
push 0x1010887c
lea ecx, [ebp - 0x144]
push ecx
call sub.MSVCR120.dll__CxxThrowException
jmp 0x1004f400
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.1000a070
mov ecx, dword [ebp - 0xc8]
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 - 0xe4], eax
mov ecx, dword [ebp - 0xc8]
call sym.COMMON.dll_protected:_unsigned_long_int___thiscall_W3Client::GetPostArgumentsLength_void_
add eax, 1
push eax
mov edx, dword [ebp - 0xe4]
push edx
mov ecx, dword [ebp - 0xc8]
call sym.COMMON.dll_protected:_unsigned_long_int___thiscall_W3Client::GetPostData_unsigned_char___unsigned_long_int_
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp - 0x11c]
push eax
mov ecx, dword [ebp - 0xe4]
push ecx
lea ecx, [ebp - 0x4c]
call fcn.1000b3e0
push eax
lea ecx, [ebp - 0x4c]
call fcn.1000a260
push eax
mov edx, dword [ebp - 0xc8]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x1004f894
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f88
je 0x1004f894
call fcn.1002e8a0
mov ecx, eax
call sym.COMMON.dll_public:_int___thiscall_CppSQLite3Exception::ErrorCode_void_const
test eax, eax
jg 0x1004f863
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 - 0x14c], eax
mov edx, dword [ebp - 0x14c]
mov dword [ebp - 0x154], edx
mov byte [ebp - 4], 6
sub esp, 0x18
mov eax, esp
mov dword [ebp - 0x1c8], esp
mov ecx, dword [ebp - 0x154]
push ecx
push str.RequestPost__HttpSendRequest_Failed:
push eax
call fcn.100346d0
add esp, 0xc
mov dword [ebp - 0x15c], eax
mov edx, dword [ebp - 0x15c]
mov dword [ebp - 0x1cc], edx
mov byte [ebp - 4], 7
call fcn.1002e8a0
mov byte [ebp - 4], 6
mov ecx, eax
call fcn.1002e660
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
call fcn.1000a1c0
mov eax, dword [ebp - 0xe4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 0x164], 0x100fadd4
push 0x1010887c
lea ecx, [ebp - 0x164]
push ecx
call sub.MSVCR120.dll__CxxThrowException
mov edx, dword [ebp - 0xe4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov byte [ebp - 0xd3], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.1000a1c0
mov al, byte [ebp - 0xd3]
lea esp, [ebp - 0x1e0]
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 8