Function at 0x1004c140
Capabilities:
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f282f
mov eax, dword fs:[0]
push eax
sub esp, 0x1fc
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 - 0xc8], ecx
mov eax, dword [ebp - 0xc8]
cmp dword [eax + 8], 0
je 0x1004c18a
mov ecx, dword [ebp - 0xc8]
cmp dword [ecx + 8], 0xffffffff
jne 0x1004c1a5
mov dword [ebp - 0x194], 0x100fa42c
push 0x1010887c
lea edx, [ebp - 0x194]
push edx
call sub.MSVCR120.dll__CxxThrowException
call fcn.1002cc50
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp - 0xc8]
cmp dword [eax + 0xa4], 2
jne 0x1004c1cb
mov dword [ebp - 0x108], 0x800000
jmp 0x1004c1d5
mov dword [ebp - 0x108], 0
mov ecx, dword [ebp - 0xc8]
movzx edx, byte [ecx + 0xb8]
test edx, edx
je 0x1004c1f2
mov dword [ebp - 0x110], 0
jmp 0x1004c1fc
mov dword [ebp - 0x110], 0x200000
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xcc], eax
cmp dword [ebp - 0xcc], 0
jne 0x1004c21d
mov dword [ebp - 0x118], 0
jmp 0x1004c2d5
mov ecx, dword [ebp - 0xcc]
mov dword [ebp - 0xe8], ecx
mov edx, dword [ebp - 0xe8]
add edx, 1
mov dword [ebp - 0x190], edx
mov eax, dword [ebp - 0xe8]
mov cl, byte [eax]
mov byte [ebp - 0xd4], cl
add dword [ebp - 0xe8], 1
cmp byte [ebp - 0xd4], 0
jne 0x1004c238
mov edx, dword [ebp - 0xe8]
sub edx, dword [ebp - 0x190]
mov dword [ebp - 0x198], edx
mov eax, dword [ebp - 0x198]
add eax, 1
mov dword [ebp - 0xd0], eax
cmp dword [ebp - 0xd0], 0x3fffffff
jle 0x1004c28f
mov dword [ebp - 0x12c], 0
jmp 0x1004c2c9
mov eax, dword [ebp - 0xd0]
shl eax, 1
call fcn.100ed140
mov dword [ebp - 0x1a0], esp
mov ecx, dword [ebp - 0xf0]
push ecx
mov edx, dword [ebp - 0xd0]
push edx
mov eax, dword [ebp - 0xcc]
push eax
mov ecx, dword [ebp - 0x1a0]
push ecx
call fcn.100492f0
mov dword [ebp - 0x12c], eax
mov edx, dword [ebp - 0x12c]
mov dword [ebp - 0x118], edx
mov eax, dword [ebp + 8]
mov dword [ebp - 0xcc], eax
cmp dword [ebp - 0xcc], 0
jne 0x1004c2f6
mov dword [ebp - 0x120], 0
jmp 0x1004c3ae
mov ecx, dword [ebp - 0xcc]
mov dword [ebp - 0xe0], ecx
mov edx, dword [ebp - 0xe0]
add edx, 1
mov dword [ebp - 0x1a8], edx
mov eax, dword [ebp - 0xe0]
mov cl, byte [eax]
mov byte [ebp - 0xd2], cl
add dword [ebp - 0xe0], 1
cmp byte [ebp - 0xd2], 0
jne 0x1004c311
mov edx, dword [ebp - 0xe0]
sub edx, dword [ebp - 0x1a8]
mov dword [ebp - 0x1b0], edx
mov eax, dword [ebp - 0x1b0]
add eax, 1
mov dword [ebp - 0xd0], eax
cmp dword [ebp - 0xd0], 0x3fffffff
jle 0x1004c368
mov dword [ebp - 0x104], 0
jmp 0x1004c3a2
mov eax, dword [ebp - 0xd0]
shl eax, 1
call fcn.100ed140
mov dword [ebp - 0x1b8], esp
mov ecx, dword [ebp - 0xf0]
push ecx
mov edx, dword [ebp - 0xd0]
push edx
mov eax, dword [ebp - 0xcc]
push eax
mov ecx, dword [ebp - 0x1b8]
push ecx
call fcn.100492f0
mov dword [ebp - 0x104], eax
mov edx, dword [ebp - 0x104]
mov dword [ebp - 0x120], edx
push 0
mov eax, dword [ebp - 0x108]
or eax, 0x4000000
or eax, dword [ebp - 0x110]
push eax
push 0x101226b4
mov ecx, dword [ebp - 0x118]
push ecx
push 0x100fa444
mov edx, dword [ebp - 0x120]
push edx
push 0x100fa458
mov eax, dword [ebp - 0xc8]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov edx, dword [ebp - 0xc8]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 0xc8]
cmp dword [eax + 0xc], 0
je 0x1004c414
mov ecx, dword [ebp - 0xc8]
cmp dword [ecx + 0xc], 0xffffffff
jne 0x1004c4ca
call fcn.1002e8a0
mov ecx, eax
call sym.COMMON.dll_public:_int___thiscall_CppSQLite3Exception::ErrorCode_void_const
test eax, eax
jg 0x1004c4af
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [ebp - 0xc4]
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 - 0x1c0], eax
mov eax, dword [ebp - 0x1c0]
mov dword [ebp - 0x16c], eax
mov dword [ebp - 4], 0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x1ec], esp
mov edx, dword [ebp - 0x16c]
push edx
push str.RequestGetOutIp__HttpOpenRequest_Failed:
push ecx
call fcn.100346d0
add esp, 0xc
mov dword [ebp - 0x13c], eax
mov eax, dword [ebp - 0x13c]
mov dword [ebp - 0x200], eax
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 - 0xc4]
call fcn.1000a1c0
mov dword [ebp - 0x148], 0x100fa4b4
push 0x1010887c
lea ecx, [ebp - 0x148]
push ecx
call sub.MSVCR120.dll__CxxThrowException
mov dword [ebp - 0xe4], 0x100fa4c8
mov edx, dword [ebp - 0xe4]
add edx, 2
mov dword [ebp - 0x164], edx
mov eax, dword [ebp - 0xe4]
mov cx, word [eax]
mov word [ebp - 0xf6], cx
add dword [ebp - 0xe4], 2
cmp word [ebp - 0xf6], 0
jne 0x1004c4e3
mov edx, dword [ebp - 0xe4]
sub edx, dword [ebp - 0x164]
sar edx, 1
mov dword [ebp - 0x150], edx
push 0x80000000
mov eax, dword [ebp - 0x150]
push eax
push 0x100fa528
mov ecx, dword [ebp - 0xc8]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
test eax, eax
jne 0x1004c558
mov dword [ebp - 0x170], 0x100fa588
push 0x1010887c
lea eax, [ebp - 0x170]
push eax
call sub.MSVCR120.dll__CxxThrowException
mov ecx, dword [ebp - 0xc8]
add ecx, 0xbc
call fcn.100140a0
movzx ecx, al
test ecx, ecx
jne 0x1004c775
mov dword [ebp - 0x100], 1
mov edx, dword [ebp - 0xc8]
movzx eax, byte [edx + 0xd4]
test eax, eax
je 0x1004c5c0
push 0x80000000
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]
mov dword [ebp - 0x100], eax
jmp 0x1004c5ef
push 0x10000000
push 0xffffffffffffffff
mov ecx, dword [ebp - 0xc8]
add ecx, 0xbc
call fcn.1000d8c0
push eax
mov eax, dword [ebp - 0xc8]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
mov dword [ebp - 0x100], eax
cmp dword [ebp - 0x100], 0
jne 0x1004c764
call fcn.1002e8a0
mov ecx, eax
call sym.COMMON.dll_public:_int___thiscall_CppSQLite3Exception::ErrorCode_void_const
test eax, eax
jg 0x1004c764
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [ebp - 0x64]
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 - 0x158], eax
mov eax, dword [ebp - 0x158]
mov dword [ebp - 0x178], eax
mov dword [ebp - 4], 2
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x208], esp
mov ecx, dword [ebp - 0x178]
push ecx
push str._errorCode
mov edx, dword [ebp - 0xc8]
add edx, 0xbc
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x1f4], esp
push edx
call fcn.10009f50
mov dword [ebp - 0x204], 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::StringToWstring_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___
add esp, 0x1c
mov dword [ebp - 0x160], eax
mov ecx, dword [ebp - 0x160]
mov dword [ebp - 0x180], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x180]
push edx
push 0x100fa5c8
lea eax, [ebp - 0xac]
push eax
call fcn.100346d0
add esp, 0xc
mov dword [ebp - 0x188], eax
mov ecx, dword [ebp - 0x188]
mov dword [ebp - 0x168], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x168]
push edx
lea eax, [ebp - 0x7c]
push eax
call fcn.100245b0
add esp, 0xc
mov dword [ebp - 0x1ac], eax
mov ecx, dword [ebp - 0x1ac]
mov dword [ebp - 0x174], ecx
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x174]
push edx
push esi
call fcn.10024110
add esp, 0xc
mov dword [ebp - 0x19c], eax
mov eax, dword [ebp - 0x19c]
mov dword [ebp - 0x1fc], eax
mov byte [ebp - 4], 6
call fcn.1002e8a0
mov byte [ebp - 4], 5
mov ecx, eax
call fcn.1002e660
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x7c]
call fcn.1000a1c0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xac]
call fcn.1000a1c0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x94]
call fcn.1000a1c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.1000a1c0
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 0x1004cbe2
lea ecx, [ebp - 0x34]
call fcn.10009fb0
mov dword [ebp - 4], 7
mov ecx, dword [ebp - 0xc8]
mov edx, dword [ecx + 0xa4]
mov dword [ebp - 0x128], edx
cmp dword [ebp - 0x128], 1
je 0x1004c7c3
cmp dword [ebp - 0x128], 2
je 0x1004c7d2
jmp 0x1004c7df
push 0x100fa60c
lea ecx, [ebp - 0x34]
call fcn.1001ca80
jmp 0x1004c7df
push 0x100fa5bc
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 0x1004c814
mov ecx, dword [ebp - 0xc8]
cmp dword [ecx + 0xa0], 0x50
je 0x1004c875
mov edx, dword [ebp - 0xc8]
cmp dword [edx + 0xa4], 2
jne 0x1004c835
mov eax, dword [ebp - 0xc8]
cmp dword [eax + 0xa0], 0x1bb
je 0x1004c875
mov cx, word [0x100fa614]
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 0x100fa618
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 - 0xfc]
push edx
mov ecx, dword [ebp - 0xc8]
add ecx, 0xb0
call fcn.10022cb0
jmp 0x1004c8af
push 0
lea eax, [ebp - 0x1f0]
push eax
lea ecx, [ebp - 0xfc]
call fcn.100471e0
lea ecx, [ebp - 0x1f8]
push ecx
mov ecx, dword [ebp - 0xc8]
add ecx, 0xb0
call fcn.100270e0
push eax
lea ecx, [ebp - 0xfc]
call fcn.10025c60
movzx edx, al
test edx, edx
je 0x1004cbd3
lea ecx, [ebp - 0xfc]
call fcn.100232a0
mov eax, dword [eax]
mov dword [ebp - 0x138], eax
mov ecx, dword [ebp - 0x138]
add ecx, 0x18
call fcn.1000d8c0
mov dword [ebp - 0xcc], eax
cmp dword [ebp - 0xcc], 0
jne 0x1004c91d
mov dword [ebp - 0x114], 0
jmp 0x1004c9d5
mov ecx, dword [ebp - 0xcc]
mov dword [ebp - 0xdc], ecx
mov edx, dword [ebp - 0xdc]
add edx, 1
mov dword [ebp - 0x17c], edx
mov eax, dword [ebp - 0xdc]
mov cl, byte [eax]
mov byte [ebp - 0xd1], cl
add dword [ebp - 0xdc], 1
cmp byte [ebp - 0xd1], 0
jne 0x1004c938
mov edx, dword [ebp - 0xdc]
sub edx, dword [ebp - 0x17c]
mov dword [ebp - 0x1bc], edx
mov eax, dword [ebp - 0x1bc]
add eax, 1
mov dword [ebp - 0xd0], eax
cmp dword [ebp - 0xd0], 0x3fffffff
jle 0x1004c98f
mov dword [ebp - 0x130], 0
jmp 0x1004c9c9
mov eax, dword [ebp - 0xd0]
shl eax, 1
call fcn.100ed140
mov dword [ebp - 0x184], esp
mov ecx, dword [ebp - 0xf0]
push ecx
mov edx, dword [ebp - 0xd0]
push edx
mov eax, dword [ebp - 0xcc]
push eax
mov ecx, dword [ebp - 0x184]
push ecx
call fcn.100492f0
mov dword [ebp - 0x130], eax
mov edx, dword [ebp - 0x130]
mov dword [ebp - 0x114], edx
mov ecx, dword [ebp - 0x138]
call fcn.1000d8c0
mov dword [ebp - 0xcc], eax
cmp dword [ebp - 0xcc], 0
jne 0x1004c9fe
mov dword [ebp - 0x134], 0
jmp 0x1004cab6
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0xec], eax
mov ecx, dword [ebp - 0xec]
add ecx, 1
mov dword [ebp - 0x1a4], ecx
mov edx, dword [ebp - 0xec]
mov al, byte [edx]
mov byte [ebp - 0xd3], al
add dword [ebp - 0xec], 1
cmp byte [ebp - 0xd3], 0
jne 0x1004ca19
mov ecx, dword [ebp - 0xec]
sub ecx, dword [ebp - 0x1a4]
mov dword [ebp - 0x18c], ecx
mov edx, dword [ebp - 0x18c]
add edx, 1
mov dword [ebp - 0xd0], edx
cmp dword [ebp - 0xd0], 0x3fffffff
jle 0x1004ca70
mov dword [ebp - 0x10c], 0
jmp 0x1004caaa
mov eax, dword [ebp - 0xd0]
shl eax, 1
call fcn.100ed140
mov dword [ebp - 0x1b4], esp
mov eax, dword [ebp - 0xf0]
push eax
mov ecx, dword [ebp - 0xd0]
push ecx
mov edx, dword [ebp - 0xcc]
push edx
mov eax, dword [ebp - 0x1b4]
push eax
call fcn.100492f0
mov dword [ebp - 0x10c], eax
mov ecx, dword [ebp - 0x10c]
mov dword [ebp - 0x134], ecx
lea ecx, [ebp - 0x34]
call fcn.1000d8c0
mov dword [ebp - 0xcc], eax
cmp dword [ebp - 0xcc], 0
jne 0x1004cadc
mov dword [ebp - 0x11c], 0
jmp 0x1004cb94
mov edx, dword [ebp - 0xcc]
mov dword [ebp - 0xf4], edx
mov eax, dword [ebp - 0xf4]
add eax, 1
mov dword [ebp - 0x140], eax
mov ecx, dword [ebp - 0xf4]
mov dl, byte [ecx]
mov byte [ebp - 0xd5], dl
add dword [ebp - 0xf4], 1
cmp byte [ebp - 0xd5], 0
jne 0x1004caf7
mov eax, dword [ebp - 0xf4]
sub eax, dword [ebp - 0x140]
mov dword [ebp - 0x144], eax
mov ecx, dword [ebp - 0x144]
add ecx, 1
mov dword [ebp - 0xd0], ecx
cmp dword [ebp - 0xd0], 0x3fffffff
jle 0x1004cb4e
mov dword [ebp - 0x124], 0
jmp 0x1004cb88
mov eax, dword [ebp - 0xd0]
shl eax, 1
call fcn.100ed140
mov dword [ebp - 0x14c], esp
mov edx, dword [ebp - 0xf0]
push edx
mov eax, dword [ebp - 0xd0]
push eax
mov ecx, dword [ebp - 0xcc]
push ecx
mov edx, dword [ebp - 0x14c]
push edx
call fcn.100492f0
mov dword [ebp - 0x124], eax
mov eax, dword [ebp - 0x124]
mov dword [ebp - 0x11c], eax
mov ecx, dword [ebp - 0x114]
push ecx
mov edx, dword [ebp - 0x134]
push edx
mov eax, dword [ebp - 0x11c]
push eax
call dword [sym.imp.WININET.dll_InternetSetCookieW]
test eax, eax
jne 0x1004cbce
mov dword [ebp - 0x154], 0x100fa61c
push 0x1010887c
lea ecx, [ebp - 0x154]
push ecx
call sub.MSVCR120.dll__CxxThrowException
jmp 0x1004c89b
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.1000a070
mov dword [ebp - 0x1e8], 0
xor edx, edx
mov dword [ebp - 0x1e4], edx
mov dword [ebp - 0x1e0], edx
mov dword [ebp - 0x1dc], edx
mov dword [ebp - 0x1d8], edx
mov dword [ebp - 0x1d4], edx
mov dword [ebp - 0x1d0], edx
mov dword [ebp - 0x1cc], edx
mov dword [ebp - 0x1c8], edx
mov dword [ebp - 0x1c4], edx
mov dword [ebp - 0x1e8], 0x28
mov dword [ebp - 0x1e4], 0
push 0
push 8
push 0
lea eax, [ebp - 0x1e8]
push eax
mov ecx, dword [ebp - 0xc8]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.WININET.dll_HttpSendRequestExW]
test eax, eax
jne 0x1004cc5d
xor al, al
jmp 0x1004cca1
lea eax, [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0xc8]
call sym.COMMON.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_W3Client::GetPeerIp_void_
mov dword [ebp - 0x15c], eax
mov ecx, dword [ebp - 0x15c]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.1000a110
lea ecx, [ebp - 0x4c]
call fcn.1000a1c0
push 0
push 0
push 0
mov edx, dword [ebp - 0xc8]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.WININET.dll_HttpEndRequestW]
mov al, 1
lea esp, [ebp - 0x210]
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 0xc