Function at 0x10041a05
Capabilities:
Receive http response

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x1004e214]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
push 0x10012fac
push 0x10012fe4
mov edi, ecx
mov dword [ebp - 0x414], esi
mov dword [ebp - 0x410], eax
call fcn.100350d6
xor ebx, ebx
add esp, 0xc
cmp dword [edi + 8], ebx
je 0x10041a95
push 0x10012fac
push 0x1001301c
call fcn.100350ee
pop ecx
pop ecx
cmp esi, 0x80000
jne 0x10041f18
push 0x100149b0
push 0x10014a00
call fcn.100350d6
pop ecx
pop ecx
cmp dword [ebp + 0x10], ebx
je 0x10041f18
mov eax, dword [ebp - 0x410]
push eax
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
jmp 0x10041f18
mov eax, dword [ebp - 0x414]
mov ecx, 0x40000
mov esi, ebx
cmp eax, ecx
ja 0x10041cff
je 0x10041cb8
cmp eax, 0x800
je 0x10041c9f
cmp eax, 0x4000
je 0x10041c67
cmp eax, 0x10000
je 0x10041bcb
cmp eax, 0x20000
jne 0x10041f18
lea eax, [edi + 0x54]
mov dword [ebp - 0x418], ebx
push eax
mov ecx, edi
call fcn.10042331
push dword [edi + 0x54]
mov esi, eax
push 0x20000
push 0x10012fac
push 0x10013218
call fcn.100350d6
add esp, 0x10
test esi, esi
jne 0x10041b98
cmp dword [edi + 0x54], 0x12e
je 0x10041b23
cmp dword [edi + 0x54], 0x133
jne 0x10041b51
lea eax, [ebp - 0x418]
mov ecx, edi
push eax
push ebx
push 0x21
call fcn.10041563
mov esi, eax
test esi, esi
jns 0x10041b4f
push esi
push 0x10012fac
push 0x10013278
call fcn.1003511d
add esp, 0xc
test esi, esi
jne 0x10041b84
mov eax, dword [edi]
push dword [ebp - 0x418]
push dword [edi + 0x54]
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x1004f3f8]
mov ecx, edi
call esi
mov esi, eax
test esi, esi
jns 0x10041b84
push esi
push 0x10012fac
push 0x100132f8
call fcn.1003511d
add esp, 0xc
mov eax, dword [ebp - 0x418]
test eax, eax
je 0x10041b96
push eax
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
test esi, esi
js 0x10041e77
push 0x10012fac
push 0x10013388
call fcn.100350d6
pop ecx
pop ecx
push ebx
push dword [edi + 4]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x10041e6b
call fcn.1004241d
jmp 0x10041e14
mov eax, dword [ebp - 0x410]
mov ecx, edi
mov esi, dword [eax]
mov dword [edi + 0x60], esi
call fcn.1003d2f2
push ecx
lea edx, [ebp - 0x40c]
mov dword [ebp - 0x414], eax
mov ecx, esi
call fcn.10042140
test eax, eax
jns 0x10041c08
push eax
push 0x10012fac
push 0x10013060
call fcn.10035105
add esp, 0xc
test byte [0x1004e980], 2
mov esi, dword [ebp - 0x414]
je 0x10041c29
lea eax, [ebp - 0x40c]
push eax
push dword [edi + 0x60]
push esi
call fcn.100345c6
mov ebx, eax
test ebx, ebx
je 0x10041c45
push ebx
push 0x10009890
push 0x100098d8
push 0x10005980
call fcn.1003511d
add esp, 0x10
lea eax, [ebp - 0x40c]
push eax
push dword [edi + 0x60]
push esi
push 0x10012fac
push 0x10013110
call fcn.1003511d
add esp, 0x14
jmp 0x10041f18
mov ecx, dword [edi]
mov eax, dword [ebp + 0x10]
add eax, eax
push eax
mov eax, dword [ebp - 0x410]
mov esi, dword [ecx + 0x14]
mov ecx, esi
push eax
call dword [0x1004f3f8]
mov ecx, edi
call esi
mov esi, eax
test esi, esi
jns 0x10041e77
push esi
push 0x10012fac
push 0x100133c8
jmp 0x10041d85
mov eax, dword [edi]
push dword [edi + 0x64]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x1004f3f8]
mov ecx, edi
call esi
jmp 0x10041f18
mov eax, dword [ebp - 0x410]
mov esi, dword [eax]
push esi
push 0x10012fac
push 0x10013444
call fcn.100350d6
add esp, 0xc
mov ecx, edi
test esi, esi
jne 0x10041cdf
push ebx
jmp 0x10041f13
push esi
call fcn.10042480
mov esi, eax
test esi, esi
jns 0x10041e77
push esi
push 0x10012fac
push 0x10013488
jmp 0x10041d85
cmp eax, 0x80000
je 0x10041e18
mov ecx, 0x200000
cmp eax, ecx
je 0x10041d92
cmp eax, 0x400000
je 0x10041d35
mov ecx, 0x1000000
cmp eax, ecx
jne 0x10041f18
push ebx
push ecx
mov ecx, edi
call fcn.10040f72
jmp 0x10041e14
push ebx
push dword [edi + 4]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x10041d72
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
mov ecx, esi
call fcn.10035bc0
push esi
push 0x100148e8
push 0x10014938
call fcn.1003511d
add esp, 0xc
test esi, esi
jle 0x10041d74
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x10041e77
push esi
push 0x10012fac
push 0x10013180
call fcn.1003511d
add esp, 0xc
jmp 0x10041e77
mov esi, dword [ebp - 0x410]
cmp dword [edi + 0x68], ebx
jne 0x10041dbe
cmp dword [esi], 6
je 0x10041dad
cmp dword [esi], 5
jne 0x10041dbe
cmp dword [edi + 0x20], 1
jne 0x10041dbe
push esi
push ecx
mov ecx, edi
call fcn.10040f72
test eax, eax
jns 0x10041f18
mov edx, dword [esi]
mov ecx, edx
mov dword [edi + 0x58], edx
mov eax, dword [esi + 4]
mov dword [ebp - 0x418], eax
mov dword [edi + 0x5c], eax
call fcn.100420ab
test eax, eax
je 0x10041ddf
cmp word [eax], bx
jne 0x10041de4
mov eax, 0x100034b0
push dword [ebp - 0x418]
push eax
push edx
push 0x10012fac
push 0x100135d8
call fcn.1003511d
mov eax, dword [edi]
add esp, 0x14
push dword [esi + 4]
push dword [esi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1004f3f8]
mov ecx, edi
call esi
mov esi, eax
jmp 0x10041e77
mov eax, dword [ebp + 0x10]
push eax
push 0x10012fac
push 0x10013510
call fcn.100350d6
mov ecx, dword [ebp + 0x10]
add esp, 0xc
test ecx, ecx
je 0x10041e6f
mov eax, dword [ebp - 0x410]
push eax
push ecx
mov ecx, edi
call fcn.1004255a
push dword [ebp - 0x410]
mov esi, eax
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
test esi, esi
jns 0x10041baf
push esi
push 0x10012fac
push 0x10013550
jmp 0x10041d85
mov esi, ebx
jmp 0x10041e77
push ebx
mov ecx, edi
call fcn.100423aa
cmp esi, 0x800704c7
jne 0x10041ee0
mov ebx, dword [ebp - 0x414]
mov ecx, ebx
call fcn.10041f2b
mov edx, eax
mov ecx, ebx
call fcn.10035b1b
push 0x10012fac
push 0x10013650
call fcn.100350ee
mov dword [edi + 8], 1
pop ecx
pop ecx
cmp ebx, 0x80000
jne 0x10041ed9
push 0x100149b0
push 0x10014a00
call fcn.100350d6
cmp dword [ebp + 0x10], 0
pop ecx
pop ecx
je 0x10041ed9
push dword [ebp - 0x410]
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
push 0x800704c7
jmp 0x10041f11
test esi, esi
jns 0x10041f18
mov ecx, dword [ebp - 0x414]
push esi
call fcn.10041f2b
mov ecx, dword [ebp - 0x414]
mov edx, eax
call fcn.10035b68
push esi
push 0x10012fac
push 0x10013698
call fcn.1003511d
add esp, 0xc
push esi
mov ecx, edi
call fcn.100423aa
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100468a0
leave
ret 0xc