Function at 0x1002ab60
Capabilities:
Check http status code
Connect to http server
Create http request
Print debug messages
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100908e8
push 0x1005aa50
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x1009cbc0]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x44], 0x1008ca18
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x28], 4
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0
mov dword [ebp - 4], 1
push 0
push 0
push 0
push 0
push 0x1008ca44
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x34], eax
test eax, eax
jne 0x1002acbc
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov ebx, eax
call esi
lea edi, [eax + 0x1e]
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
jne 0x1002ac38
push str.Memory_allocation_error_in_log_file_n
call fcn.10052604
add esp, 4
push str.Memory_allocation_error_in_log_file_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x1002ac94
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push edi
test eax, eax
jle 0x1002ac73
mov byte [esi + 0xffff], 0
push esi
push str.SendCosmostRequest
push 1
mov edx, 0x939
mov ecx, str...StandAloneSvcExploitFiles.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x1002ac8b
push str.Error__d_in_swprintf_s_n
call fcn.10052604
add esp, 8
push str.Error_in_swprintf_s_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
call fcn.10052152
add esp, 4
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x1009cbc0
call fcn.10062b20
add esp, 0xc
lea eax, [ebx + 0x1e]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 3
push 0
push 0
push 0x1bb
push str.blitz.mb_cosmos.com
push eax
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x1002ad46
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov ebx, eax
call esi
lea edi, [eax + 0x1e]
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
je 0x1002ac1e
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push edi
test eax, eax
jle 0x1002ac73
mov byte [esi + 0xffff], 0
push esi
push str.SendCosmostRequest
push 1
mov edx, 0x93e
mov ecx, str...StandAloneSvcExploitFiles.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x1002ac8b
push 0
push 0x800000
lea ecx, [ebp - 0x44]
push ecx
push 0
push 0
push 0x1008ca8c
push 0x1008ca90
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
mov dword [ebp - 0x2c], edi
test edi, edi
jne 0x1002add7
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov ebx, eax
call esi
lea edi, [eax + 0x1e]
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
je 0x1002ac1e
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push edi
test eax, eax
jle 0x1002ac73
mov byte [esi + 0xffff], 0
push esi
push str.SendCosmostRequest
push 1
mov edx, 0x943
mov ecx, str...StandAloneSvcExploitFiles.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x1002ac8b
push 0x20000000
push 0xffffffffffffffff
push 0x1008ca98
push edi
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
test eax, eax
jne 0x1002ae56
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov ebx, eax
call esi
lea edi, [eax + 0x1e]
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
je 0x1002ac1e
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push edi
test eax, eax
jle 0x1002ac73
mov byte [esi + 0xffff], 0
push esi
push str.SendCosmostRequest
push 1
mov edx, 0x946
mov ecx, str...StandAloneSvcExploitFiles.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x1002ac8b
mov esi, ebx
lea ecx, [esi + 1]
jmp 0x1002ae60
mov al, byte [esi]
inc esi
test al, al
jne 0x1002ae60
sub esi, ecx
add esi, 0x16
lea eax, [esi + 0xa]
push eax
call fcn.1005218a
mov ebx, eax
mov dword [ebp - 0x24], ebx
push esi
push 0
push ebx
call fcn.10055aa0
push dword [ebp - 0x1c]
push str.Authorization:Bearer__s
push esi
push ebx
call fcn.10052136
add esp, 0x20
push 0x20000000
push 0xffffffffffffffff
push ebx
push edi
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
test eax, eax
jne 0x1002af10
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov ebx, eax
call esi
lea edi, [eax + 0x1e]
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
je 0x1002ac1e
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push edi
test eax, eax
jle 0x1002ac73
mov byte [esi + 0xffff], 0
push esi
push str.SendCosmostRequest
push 1
mov edx, 0x94e
mov ecx, str...StandAloneSvcExploitFiles.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x1002ac8b
push 0x800
push str._component_:_mbae_
call fcn.10053a0a
add esp, 8
push eax
push str._component_:_mbae_
push 0
push 0
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x1002af9f
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov ebx, eax
call esi
lea edi, [eax + 0x1e]
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
je 0x1002ac1e
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push edi
test eax, eax
jle 0x1002ac73
mov byte [esi + 0xffff], 0
push esi
push str.SendCosmostRequest
push 1
mov edx, 0x954
mov ecx, str...StandAloneSvcExploitFiles.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x1002ac8b
push 0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x20000013
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x1002b021
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov ebx, eax
call esi
lea edi, [eax + 0x1e]
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
je 0x1002ac1e
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push edi
test eax, eax
jle 0x1002ac73
mov byte [esi + 0xffff], 0
push esi
push str.SendCosmostRequest
push 1
mov edx, 0x957
mov ecx, str...StandAloneSvcExploitFiles.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x1002ac8b
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [eax + 0x1e]
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], 0
push 0x1000a
call fcn.1005218a
mov dword [ebp - 0x1c], eax
push 0x2000a
call fcn.1005218a
add esp, 8
mov ebx, eax
cmp dword [ebp - 0x1c], 0
je 0x1002b0fe
test ebx, ebx
je 0x1002b0fe
push dword [ebp - 0x28]
push dword [ebp - 0x20]
push str.SendCosmosRequest_response:__d____d
push 0xffff
push ebx
call fcn.1005211a
add esp, 0x14
test eax, eax
jle 0x1002b0e9
xor eax, eax
mov word [ebx + 0x1fffe], ax
push 0xfffffffffffffffe
push ebx
call fcn.10051b84
push 0xffffffffffffffff
push ebx
inc eax
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0x38]
push eax
call fcn.10052d14
add esp, 0x1c
test eax, eax
je 0x1002b0c2
push esi
push ebx
push str.wcstombs_s_error_in_log_file:__s____d_n
call fcn.10052604
add esp, 0xc
push ebx
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call esi
jmp 0x1002b0c8
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push dword [ebp - 0x3c]
push dword [ebp - 0x1c]
push str.SendCosmostRequest
push 4
mov edx, 0x959
mov ecx, str...StandAloneSvcExploitFiles.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x1002b118
push esi
push str.Error__d_in_swprintf_s_n
call fcn.10052604
add esp, 8
push str.Error_in_swprintf_s_n
jmp 0x1002b110
push str.Memory_allocation_error_in_log_file_n
call fcn.10052604
add esp, 4
push str.Memory_allocation_error_in_log_file_n
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call esi
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1002b128
push eax
call fcn.10052152
add esp, 4
test ebx, ebx
je 0x1002b135
push ebx
call fcn.10052152
add esp, 4
mov edx, dword [ebp + 8]
mov ecx, edi
call fcn.1002a100
mov ebx, eax
test ebx, ebx
je 0x1002b1f1
push 0x1000a
call fcn.1005218a
add esp, 4
mov edi, eax
test edi, edi
jne 0x1002b172
push str.Memory_allocation_error_in_log_file_n
call fcn.10052604
add esp, 4
push str.Memory_allocation_error_in_log_file_n
call esi
jmp 0x1002b1ca
push 0x100865c0
push 0xffff
push edi
call fcn.10052136
add esp, 0xc
push ebx
test eax, eax
jle 0x1002b1ad
mov byte [edi + 0xffff], 0
push edi
push str.SendCosmostRequest
push 1
mov edx, 0x95e
mov ecx, str...StandAloneSvcExploitFiles.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x1002b1c1
push str.Error__d_in_swprintf_s_n
call fcn.10052604
add esp, 8
push str.Error_in_swprintf_s_n
call esi
push edi
call fcn.10052152
add esp, 4
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x1009cbc0
call fcn.10062b20
add esp, 0xc
mov eax, ebx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x20], 0xc8
je 0x1002b224
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x1009cbc0
call fcn.10062b20
add esp, 0xc
mov eax, 0x2b
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
call fcn.1002b24e
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret