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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x4fb44c]
mov edx, dword [eax + 0xc]
push ebx
push esi
push edi
mov ecx, 0x4fb44c
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 0x414bd9
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 0x414bbc
mov ecx, dword [ebp + 0xc]
push edi
push edi
push edi
push edi
push ecx
push 0x4d5ec8
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
cmp esi, edi
je 0x414b92
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 0x414b5e
push edi
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
cmp eax, edi
je 0x414b23
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 0x414ae1
mov eax, dword [ebp - 4]
cmp eax, edi
je 0x414b6b
inc eax
push eax
call fcn.0042c2e4
mov ebx, eax
add esp, 4
cmp ebx, edi
je 0x414b1c
mov eax, dword [ebp - 4]
inc eax
push eax
push edi
push ebx
call fcn.00436f70
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 0x414a89
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__u_in_WinHttpReadData._n
jmp 0x414a8f
push ebx
push 0x4d5f28
call fcn.0042fb7a
mov eax, dword [ebp + 8]
add esp, 8
call fcn.004033c0
push ebx
call fcn.0042d945
add esp, 4
cmp dword [ebp - 8], edi
je 0x414b6b
cmp dword [ebp - 4], edi
ja 0x414a20
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.0042fb7a
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 0x414b63
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__d_has_occurred._n
call fcn.0042fb7a
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.0042fb7a
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.0042fb7a
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.0042fb7a
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.0042fb7a
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret