Function at 0x414a30
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 0x414c89
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 0x414c6c
mov ecx, dword [ebp + 0xc]
push edi
push edi
push edi
push edi
push ecx
push 0x4d5ebc
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
cmp esi, edi
je 0x414c42
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 0x414c0e
push edi
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
cmp eax, edi
je 0x414bd3
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 0x414b91
mov eax, dword [ebp - 4]
cmp eax, edi
je 0x414c1b
inc eax
push eax
call fcn.0042c2d3
mov ebx, eax
add esp, 4
cmp ebx, edi
je 0x414bcc
mov eax, dword [ebp - 4]
inc eax
push eax
push edi
push ebx
call fcn.00436fe0
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 0x414b39
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__u_in_WinHttpReadData._n
jmp 0x414b3f
push ebx
push 0x4d5f1c
call fcn.0042fb87
mov eax, dword [ebp + 8]
add esp, 8
call fcn.004033c0
push ebx
call fcn.0042d955
add esp, 4
cmp dword [ebp - 8], edi
je 0x414c1b
cmp dword [ebp - 4], edi
ja 0x414ad0
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.0042fb87
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 0x414c13
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__d_has_occurred._n
call fcn.0042fb87
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.0042fb87
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.0042fb87
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.0042fb87
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.0042fb87
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret