Function at 0x415ea0
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x4fc44c]
mov edx, dword [eax + 0xc]
push ebx
push esi
push edi
mov ecx, 0x4fc44c
call edx
mov esi, dword [ebp + 8]
xor edi, edi
push edi
push edi
push edi
push edi
add eax, 0x10
push str.WinHttp_Get
mov dword [esi], eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov ebx, eax
mov dword [ebp - 0xc], ebx
cmp ebx, edi
je 0x4160f9
push edi
push 0x1bb
push str.api.gamebuff.cn
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0x10], eax
cmp eax, edi
je 0x4160dc
mov ecx, dword [ebp + 0xc]
push edi
push edi
push edi
push edi
push ecx
push 0x4d6f94
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
cmp esi, edi
je 0x4160b2
push edi
push edi
push edi
push edi
push edi
push edi
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
cmp eax, edi
je 0x41607e
push edi
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
cmp eax, edi
je 0x416043
mov edi, edi
lea edx, [ebp - 4]
push edx
push esi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x416001
mov eax, dword [ebp - 4]
cmp eax, edi
je 0x41608b
inc eax
push eax
call fcn.0042d594
mov ebx, eax
add esp, 4
cmp ebx, edi
je 0x41603c
mov eax, dword [ebp - 4]
inc eax
push eax
push edi
push ebx
call fcn.00438200
mov edx, dword [ebp - 4]
add esp, 0xc
lea ecx, [ebp - 8]
push ecx
push edx
push ebx
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x415fa9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__u_in_WinHttpReadData._n
jmp 0x415faf
push ebx
push 0x4d6ff4
call fcn.00430e27
mov eax, dword [ebp + 8]
add esp, 8
call fcn.00403370
push ebx
call fcn.0042ebf5
add esp, 4
cmp dword [ebp - 8], edi
je 0x41608b
cmp dword [ebp - 4], edi
ja 0x415f40
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov esi, dword [ebp + 8]
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__u_in_WinHttpQueryDataAvailable._n
call fcn.00430e27
add esp, 8
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov esi, dword [ebp + 8]
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Out_of_memory_n
jmp 0x416083
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__d_has_occurred._n
call fcn.00430e27
add esp, 8
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov esi, dword [ebp + 8]
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Request_failed_n
call fcn.00430e27
add esp, 4
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov esi, dword [ebp + 8]
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Invalid_request_handle_n
call fcn.00430e27
mov eax, dword [ebp - 0x10]
add esp, 4
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov esi, dword [ebp + 8]
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Invalid_connection_handle_n
call fcn.00430e27
add esp, 4
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Invalid_WinHTTP_session_handle_n
call fcn.00430e27
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret