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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x4fa44c]
mov edx, dword [eax + 0xc]
push ebx
push esi
push edi
mov ecx, 0x4fa44c
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 0x416039
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 0x41601c
mov ecx, dword [ebp + 0xc]
push edi
push edi
push edi
push edi
push ecx
push 0x4d4cfc
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
cmp esi, edi
je 0x415ff2
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 0x415fbe
push edi
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
cmp eax, edi
je 0x415f83
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 0x415f41
mov eax, dword [ebp - 4]
cmp eax, edi
je 0x415fcb
inc eax
push eax
call fcn.0042d5cf
mov ebx, eax
add esp, 4
cmp ebx, edi
je 0x415f7c
mov eax, dword [ebp - 4]
inc eax
push eax
push edi
push ebx
call fcn.00438230
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 0x415ee9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__u_in_WinHttpReadData._n
jmp 0x415eef
push ebx
push 0x4d4d5c
call fcn.00430e67
mov eax, dword [ebp + 8]
add esp, 8
call fcn.00403340
push ebx
call fcn.0042ec35
add esp, 4
cmp dword [ebp - 8], edi
je 0x415fcb
cmp dword [ebp - 4], edi
ja 0x415e80
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.00430e67
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 0x415fc3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__d_has_occurred._n
call fcn.00430e67
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.00430e67
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.00430e67
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.00430e67
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.00430e67
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret