Function at 0x10001340
Capabilities:
Check http status code
Connect to http server
Create http request
Hash data using sha1
Send data
Send http request

Disassembly:
push 0xffffffffffffffff
push 0x1000c9ec
mov eax, dword fs:[0]
push eax
sub esp, 0x534
mov eax, dword [0x10011050]
xor eax, esp
mov dword [esp + 0x530], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10011050]
xor eax, esp
push eax
lea eax, [esp + 0x548]
mov dword fs:[0], eax
mov edi, ecx
mov ebp, dword [esp + 0x55c]
xor ebx, ebx
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
mov eax, dword [esp + 0x558]
push edi
push eax
lea ecx, [esp + 0x14c]
push str._d_u
push ecx
mov dword [esp + 0x560], ebx
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x154]
add esp, 0x10
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100013c6
sub eax, esi
push eax
lea edx, [esp + 0x148]
push edx
lea ecx, [esp + 0x50]
call fcn.10003870
push ebx
push ebp
or eax, 0xffffffff
lea esi, [esp + 0x50]
call fcn.100029d0
push 0x27
push str.019EE039_6635_4cf1_8D67_1A4FFA54E864
mov eax, esi
call fcn.10002ac0
cmp dword [esp + 0x60], 0x10
mov esi, dword [esp + 0x4c]
jae 0x1000140c
lea esi, [esp + 0x4c]
push esi
mov dword [esp + 0xf4], ebx
mov dword [esp + 0xf8], ebx
mov dword [esp + 0xfc], ebx
mov dword [esp + 0xe0], 0x67452301
mov dword [esp + 0xe4], 0xefcdab89
mov dword [esp + 0xe8], 0x98badcfe
mov dword [esp + 0xec], 0x10325476
mov dword [esp + 0xf0], 0xc3d2e1f0
mov dword [esp + 0x140], ebx
mov dword [esp + 0x144], ebx
call dword [0x10011e7c]
add esp, 4
push eax
mov eax, esi
lea esi, [esp + 0xa0]
call fcn.10004360
mov eax, esi
call fcn.100042f0
mov eax, dword [esp + 0x558]
push edi
push eax
lea ecx, [esp + 0x14c]
push str._d_u
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x154]
add esp, 0x10
lea esi, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100014b0
sub eax, esi
push eax
lea edx, [esp + 0x148]
push edx
lea ecx, [esp + 0x50]
call fcn.10003870
push ebx
push ebp
or eax, 0xffffffff
lea esi, [esp + 0x50]
call fcn.100029d0
mov esi, dword [esp + 0x5c]
lea eax, [esp + 0x18]
push eax
add esi, 0x14
call fcn.100028a0
push esi
lea eax, [esp + 0x1c]
mov byte [esp + 0x554], 1
call fcn.10002910
mov esi, dword [esp + 0x5c]
mov ebp, dword [esp + 0x4c]
mov edi, 0x10
cmp dword [esp + 0x60], edi
jae 0x10001513
lea ebp, [esp + 0x4c]
mov ecx, dword [esp + 0x28]
sub ecx, dword [esp + 0x24]
jne 0x10001522
call fcn.10005410
mov edx, dword [esp + 0x24]
push esi
push ebp
push edx
call fcn.100060e0
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x68]
sub ecx, dword [esp + 0x30]
add esp, 0xc
mov esi, eax
cmp eax, ecx
jb 0x10001548
call fcn.10005410
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x9c]
lea eax, [edx + esi]
mov edx, dword [esp + 0xa0]
push ebx
mov dword [eax], ecx
mov ecx, dword [esp + 0xa8]
push ebx
mov dword [eax + 4], edx
mov edx, dword [esp + 0xb0]
push ebx
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0xb8]
push 4
mov dword [eax + 0xc], edx
push ebx
mov dword [eax + 0x10], ecx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ebp, eax
cmp ebp, ebx
jne 0x100015d8
mov eax, dword [esp + 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
cmp eax, ebx
je 0x100015ad
push eax
push ebx
call ebp
push eax
call esi
mov edx, dword [esp + 0x18]
push edx
push ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call ebp
push eax
call esi
cmp dword [esp + 0x60], edi
jb 0x1000194c
mov eax, dword [esp + 0x4c]
push eax
jmp 0x10001944
push 1
push ebx
push 3
push ebx
push ebx
push 0x50
push str.blackshot.garena.com
push ebp
call dword [sym.imp.WININET.dll_InternetConnectW]
mov esi, eax
mov dword [esp + 0x30], esi
cmp esi, ebx
jne 0x10001644
push ebp
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [esp + 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
cmp eax, ebx
je 0x10001619
push eax
push ebx
call ebp
push eax
call esi
mov ecx, dword [esp + 0x18]
push ecx
push ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call ebp
push eax
call esi
cmp dword [esp + 0x60], edi
jb 0x1000194c
mov edx, dword [esp + 0x4c]
push edx
jmp 0x10001944
push ebx
push ebx
push ebx
push ebx
push ebx
push str._storeph.php
push str.POST
push esi
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov edi, eax
cmp edi, ebx
jne 0x1000168a
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebp
call esi
lea eax, [esp + 0x18]
call fcn.10001980
cmp dword [esp + 0x60], 0x10
jb 0x1000194c
mov eax, dword [esp + 0x4c]
push eax
jmp 0x10001944
mov eax, str.Accept_Encoding:_none
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], str.Content_Type:_application_x_www_form_urlencoded
mov dword [esp + 0x44], ebx
lea esi, [esp + 0x3c]
push 0xa0000000
push 0xffffffffffffffff
push eax
push edi
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
mov eax, dword [esi + 4]
add esi, 4
cmp eax, ebx
jne 0x100016a3
push 5
mov esi, 0xf
push str.data
lea ecx, [esp + 0x6c]
mov dword [esp + 0x84], esi
mov dword [esp + 0x80], ebx
mov byte [esp + 0x70], bl
call fcn.10003870
mov dword [esp + 0x98], esi
mov dword [esp + 0x94], ebx
mov byte [esp + 0x84], bl
mov byte [esp + 0x550], 3
mov esi, dword [esp + 0x28]
sub esi, dword [esp + 0x24]
jne 0x1000170f
call fcn.10005410
mov ecx, dword [esp + 0x24]
push esi
push ecx
lea eax, [esp + 0x88]
call fcn.10003390
add esp, 8
push ebx
lea edx, [esp + 0x84]
push edx
or eax, 0xffffffff
lea esi, [esp + 0x6c]
call fcn.100029d0
mov eax, dword [esp + 0x68]
mov esi, 0x10
cmp dword [esp + 0x7c], esi
jae 0x1000174c
lea eax, [esp + 0x68]
mov ecx, dword [esp + 0x78]
push ecx
push eax
push ebx
push ebx
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x1000180e
push edi
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call edi
mov edx, dword [esp + 0x30]
push edx
call edi
push ebp
call edi
cmp dword [esp + 0x98], esi
jb 0x1000178f
mov eax, dword [esp + 0x84]
push eax
call fcn.10004fcc
add esp, 4
mov edi, 0xf
mov dword [esp + 0x98], edi
mov dword [esp + 0x94], ebx
mov byte [esp + 0x84], bl
cmp dword [esp + 0x7c], esi
jb 0x100017bc
mov ecx, dword [esp + 0x68]
push ecx
call fcn.10004fcc
add esp, 4
mov eax, dword [esp + 0x24]
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [esp + 0x7c], edi
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], bl
cmp eax, ebx
je 0x100017e3
push eax
push ebx
call ebp
push eax
call edi
mov edx, dword [esp + 0x18]
push edx
push ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call ebp
push eax
call edi
cmp dword [esp + 0x60], esi
jb 0x1000194c
mov eax, dword [esp + 0x4c]
push eax
jmp 0x10001944
push ebx
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x3c]
push edx
push 0x20000013
push edi
mov dword [esp + 0x4c], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x100018cb
cmp dword [esp + 0x34], 0xc8
jne 0x100018cb
push edi
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call edi
mov eax, dword [esp + 0x30]
push eax
call edi
push ebp
call edi
cmp dword [esp + 0x98], esi
jb 0x1000186f
mov ecx, dword [esp + 0x84]
push ecx
call fcn.10004fcc
add esp, 4
mov edi, 0xf
mov dword [esp + 0x98], edi
mov dword [esp + 0x94], ebx
mov byte [esp + 0x84], bl
cmp dword [esp + 0x7c], esi
jb 0x1000189c
mov edx, dword [esp + 0x68]
push edx
call fcn.10004fcc
add esp, 4
lea eax, [esp + 0x18]
mov dword [esp + 0x7c], edi
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], bl
call fcn.10001980
cmp dword [esp + 0x60], esi
jb 0x100018c4
mov eax, dword [esp + 0x4c]
push eax
call fcn.10004fcc
add esp, 4
mov al, 1
jmp 0x1000194e
push edi
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call edi
mov ecx, dword [esp + 0x30]
push ecx
call edi
push ebp
call edi
cmp dword [esp + 0x98], esi
jb 0x100018f7
mov edx, dword [esp + 0x84]
push edx
call fcn.10004fcc
add esp, 4
mov edi, 0xf
mov dword [esp + 0x98], edi
mov dword [esp + 0x94], ebx
mov byte [esp + 0x84], bl
cmp dword [esp + 0x7c], esi
jb 0x10001924
mov eax, dword [esp + 0x68]
push eax
call fcn.10004fcc
add esp, 4
lea eax, [esp + 0x18]
mov dword [esp + 0x7c], edi
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], bl
call fcn.10001980
cmp dword [esp + 0x60], esi
jb 0x1000194c
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.10004fcc
add esp, 4
xor al, al
mov ecx, dword [esp + 0x548]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x530]
xor ecx, esp
call fcn.10004fd7
add esp, 0x540
ret