Function at 0x4b4b50
Capabilities:
Initialize winhttp library
Prepare http request
Read http header
Receive http response
Resolve function by parsing pe exports
Send data
Send http request
Set http header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5655ed
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2544
call fcn.0052ad70
mov eax, dword [0x5b38f0]
xor eax, esp
mov dword [esp + 0x2540], eax
push ebx
push esi
push edi
mov eax, dword [0x5b38f0]
xor eax, esp
push eax
lea eax, [esp + 0x2558]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], esi
test esi, esi
je 0x4b4be2
lea ebx, [esi + 0xc]
mov dword [esp + 0x1c], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
mov ecx, dword [esi + 4]
mov dword [esi + 0x50], eax
mov dword [esi + 0x4c], 0
test ecx, ecx
je 0x4b4bd5
mov edx, dword [ecx]
push eax
push 1
push 0
push dword [esi + 8]
call dword [edx]
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x4b4c65
mov eax, dword [0x5ce794]
test al, 1
jne 0x4b4c5d
or eax, 1
mov dword [0x5ce7a0], 0
mov dword [0x5ce794], eax
xor eax, eax
push 0x56ac00
mov dword [0x5ce7a4], 0
mov dword [0x5ce7a8], 0
mov dword [0x5ce7c0], 7
mov dword [0x5ce7bc], 0
mov word [0x5ce7ac], ax
mov dword [0x5ce7d8], 0xf
mov dword [0x5ce7d4], eax
mov byte [0x5ce7c4], al
mov dword [0x5ce7dc], eax
mov dword [0x5ce7e0], eax
mov dword [0x5ce7e4], eax
call fcn.00525537
add esp, 4
mov dword [esp + 0x1c], 0x5ce7a0
lea ecx, [esp + 0x9c]
call fcn.004b47a0
push 4
push dword [0x5960a8]
mov eax, 0x50
mov dword [esp + 0x24f4], 2
mov word [esp + 0x24f0], ax
lea eax, [esp + 0xa4]
push 0x21
push eax
mov dword [esp + 0x2500], 4
call fcn.004b7d10
add esp, 0x10
cmp dword [edi + 0x14], 8
jb 0x4b4cb6
mov edi, dword [edi]
lea ecx, [esp + 0x9c]
call fcn.004b47a0
push edi
lea ecx, [esp + 0xa0]
call fcn.004b4230
mov edi, eax
test esi, esi
je 0x4b4cfb
call ebx
mov ecx, dword [esi + 4]
mov dword [esi + 0x50], eax
mov dword [esi + 0x4c], 1
test ecx, ecx
je 0x4b4cf3
mov edx, dword [ecx]
push eax
push edi
push 1
push dword [esi + 8]
call dword [edx]
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
test edi, edi
je 0x4b5814
mov dword [esp + 0x98], 7
mov dword [esp + 0x94], eax
mov word [esp + 0x84], ax
cmp word [esp + 0xde], ax
jne 0x4b4d2d
xor ecx, ecx
jmp 0x4b4d46
lea ecx, [esp + 0xde]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b4d37
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0xe2]
push eax
lea ecx, [esp + 0x8c]
call fcn.00408659
mov dword [esp + 0x2560], 0
xor eax, eax
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], 0
mov word [esp + 0x54], ax
cmp word [esp + 0x4e4], ax
jne 0x4b4d8b
xor ecx, ecx
jmp 0x4b4da4
lea ecx, [esp + 0x4e4]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b4d95
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x4e8]
push eax
lea ecx, [esp + 0x5c]
call fcn.00408659
mov byte [esp + 0x2560], 1
cmp word [esp + 0x14e6], 0
jne 0x4b4dcd
xor ecx, ecx
jmp 0x4b4de6
lea ecx, [esp + 0x14e6]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b4dd7
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x14ea]
push eax
lea ecx, [esp + 0x5c]
call fcn.004090e2
movzx eax, word [esp + 0x24e8]
mov edx, 0x800100
mov dword [esp + 0x28], eax
mov ecx, 0x100
xor eax, eax
cmp dword [esp + 0x24ec], 3
push 0
push 0
sete al
push 0
test eax, eax
push 0
cmovne ecx, edx
push 0x596010
mov dword [esp + 0x34], ecx
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov edi, eax
mov dword [esp + 0x50], edi
xor eax, eax
mov byte [esp + 0x2560], 2
test edi, edi
setne al
mov dword [esp + 0x14], eax
test esi, esi
je 0x4b4e81
call ebx
mov ecx, dword [esi + 4]
mov dword [esi + 0x50], eax
mov dword [esi + 0x4c], 2
test ecx, ecx
je 0x4b4e75
mov edx, dword [ecx]
push eax
push dword [esp + 0x18]
push 2
push dword [esi + 8]
call dword [edx]
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4b4eda
test edi, edi
je 0x4b4e90
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [esp + 0x68], 8
jb 0x4b4ea3
push dword [esp + 0x54]
call fcn.0052558c
add esp, 4
xor eax, eax
mov dword [esp + 0x68], 7
cmp dword [esp + 0x98], 8
mov dword [esp + 0x64], 0
mov word [esp + 0x54], ax
jb 0x4b4ed3
push dword [esp + 0x84]
call fcn.0052558c
add esp, 4
xor eax, eax
jmp 0x4b5814
cmp dword [esp + 0x98], 8
lea eax, [esp + 0x84]
push 0
push dword [esp + 0x2c]
cmovae eax, dword [esp + 0x8c]
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov ebx, eax
mov dword [esp + 0x48], ebx
xor eax, eax
mov byte [esp + 0x2560], 3
test ebx, ebx
setne al
mov dword [esp + 0x14], eax
test esi, esi
je 0x4b4f4d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 4]
mov dword [esi + 0x50], eax
mov dword [esi + 0x4c], 3
test ecx, ecx
je 0x4b4f41
mov edx, dword [ecx]
push eax
push dword [esp + 0x18]
push 3
push dword [esi + 8]
call dword [edx]
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4b4f6e
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test ebx, ebx
je 0x4b4f5e
push ebx
call esi
test edi, edi
je 0x4b4e90
push edi
call esi
jmp 0x4b4e90
xor eax, eax
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], 0
mov word [esp + 0x6c], ax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x6c]
mov byte [esp + 0x2560], 4
mov eax, dword [eax + 0x3c]
sub eax, 0
je 0x4b4fb8
dec eax
je 0x4b4faf
push 3
dec eax
jne 0x4b4fba
push 0x596038
jmp 0x4b4fbf
push 4
push str.POST
jmp 0x4b4fbf
push 3
push 0x596024
call fcn.00408659
push dword [esp + 0x20]
cmp dword [esp + 0x6c], 8
lea ecx, [esp + 0x58]
push 0
cmovae ecx, dword [esp + 0x5c]
lea eax, [esp + 0x74]
cmp dword [esp + 0x88], 8
push 0
cmovae eax, dword [esp + 0x78]
push str.HTTP_1.1
push ecx
push eax
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
mov dword [esp + 0x4c], esi
xor eax, eax
mov byte [esp + 0x2560], 5
test esi, esi
setne al
cmp dword [esp + 0x18], 0
mov dword [esp + 0x14], eax
je 0x4b5033
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x18]
push eax
push dword [esp + 0x18]
push 4
call fcn.004b4ae0
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4b508f
test esi, esi
je 0x4b5042
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [esp + 0x80], 8
jb 0x4b5058
push dword [esp + 0x6c]
call fcn.0052558c
add esp, 4
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor eax, eax
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], 0
mov word [esp + 0x6c], ax
test ebx, ebx
je 0x4b507f
push ebx
call esi
test edi, edi
je 0x4b4e90
push edi
call esi
jmp 0x4b4e90
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x1c], 0
je 0x4b513c
add eax, 0xc
cmp dword [eax + 0x14], 8
jb 0x4b50a8
mov eax, dword [eax]
push 0x20000000
push 0xffffffffffffffff
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
cmp dword [esp + 0x18], 0
mov dword [esp + 0x14], eax
je 0x4b50dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x18]
push eax
push dword [esp + 0x18]
push 5
call fcn.004b4ae0
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4b5138
test esi, esi
je 0x4b50eb
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [esp + 0x80], 8
jb 0x4b5101
push dword [esp + 0x6c]
call fcn.0052558c
add esp, 4
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor eax, eax
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], 0
mov word [esp + 0x6c], ax
test ebx, ebx
je 0x4b5128
push ebx
call esi
test edi, edi
je 0x4b4e90
push edi
call esi
jmp 0x4b4e90
mov eax, dword [esp + 0x1c]
xor ecx, ecx
cmp dword [eax + 0x3c], 1
mov dword [esp + 0x20], ecx
jne 0x4b514f
mov ecx, dword [eax + 0x34]
mov dword [esp + 0x20], ecx
push 0
push ecx
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
cmp dword [esp + 0x18], 0
mov dword [esp + 0x14], eax
je 0x4b5186
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x18]
push eax
push dword [esp + 0x18]
push 6
call fcn.004b4ae0
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4b51e2
test esi, esi
je 0x4b5195
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [esp + 0x80], 8
jb 0x4b51ab
push dword [esp + 0x6c]
call fcn.0052558c
add esp, 4
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor eax, eax
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], 0
mov word [esp + 0x6c], ax
test ebx, ebx
je 0x4b51d2
push ebx
call esi
test edi, edi
je 0x4b4e90
push edi
call esi
jmp 0x4b4e90
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x3c], 1
jne 0x4b529f
cmp dword [eax + 0x34], 0
je 0x4b529f
add eax, 0x24
mov dword [esp + 0x28], 0
cmp dword [eax + 0x14], 0x10
jb 0x4b520d
mov eax, dword [eax]
lea ecx, [esp + 0x28]
push ecx
push dword [esp + 0x24]
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpWriteData]
cmp dword [esp + 0x18], 0
mov dword [esp + 0x14], eax
je 0x4b5243
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x18]
push eax
push dword [esp + 0x18]
push 7
call fcn.004b4ae0
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4b529f
test esi, esi
je 0x4b5252
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [esp + 0x80], 8
jb 0x4b5268
push dword [esp + 0x6c]
call fcn.0052558c
add esp, 4
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor eax, eax
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], 0
mov word [esp + 0x6c], ax
test ebx, ebx
je 0x4b528f
push ebx
call esi
test edi, edi
je 0x4b4e90
push edi
call esi
jmp 0x4b4e90
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
cmp dword [esp + 0x18], 0
mov dword [esp + 0x14], eax
je 0x4b52cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x18]
push eax
push dword [esp + 0x18]
push 8
call fcn.004b4ae0
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4b5329
test esi, esi
je 0x4b52dc
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [esp + 0x80], 8
jb 0x4b52f2
push dword [esp + 0x6c]
call fcn.0052558c
add esp, 4
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor eax, eax
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], 0
mov word [esp + 0x6c], ax
test ebx, ebx
je 0x4b5319
push ebx
call esi
test edi, edi
je 0x4b4e90
push edi
call esi
jmp 0x4b4e90
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x44]
push ecx
add eax, 4
mov dword [esp + 0x48], 0
lea ecx, [esp + 0x44]
mov dword [esp + 0x24], eax
push ecx
push eax
push 0
push 0x20000005
push esi
mov dword [eax], 0
mov dword [esp + 0x58], 4
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
cmp dword [esp + 0x18], 0
mov dword [esp + 0x14], eax
je 0x4b5388
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x18]
push eax
push dword [esp + 0x18]
push 9
call fcn.004b4ae0
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4b53e4
test esi, esi
je 0x4b5397
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [esp + 0x80], 8
jb 0x4b53ad
push dword [esp + 0x6c]
call fcn.0052558c
add esp, 4
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor eax, eax
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], 0
mov word [esp + 0x6c], ax
test ebx, ebx
je 0x4b53d4
push ebx
call esi
test edi, edi
je 0x4b4e90
push edi
call esi
jmp 0x4b4e90
xor eax, eax
push 0x3e
push eax
mov word [esp + 0x2514], ax
lea eax, [esp + 0x2516]
push eax
call fcn.005278d0
add esp, 0xc
mov dword [esp + 0x3c], 0x40
lea eax, [esp + 0x3c]
push 0
push eax
lea eax, [esp + 0x2514]
push eax
push 0
push 0x13
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
cmp dword [esp + 0x18], 0
mov dword [esp + 0x14], eax
je 0x4b5448
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x18]
push eax
push dword [esp + 0x18]
push 9
call fcn.004b4ae0
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4b54a4
test esi, esi
je 0x4b5457
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [esp + 0x80], 8
jb 0x4b546d
push dword [esp + 0x6c]
call fcn.0052558c
add esp, 4
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor eax, eax
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], 0
mov word [esp + 0x6c], ax
test ebx, ebx
je 0x4b5494
push ebx
call esi
test edi, edi
je 0x4b4e90
push edi
call esi
jmp 0x4b4e90
lea eax, [esp + 0x250c]
push eax
call fcn.0052586e
mov ecx, dword [esp + 0x20]
add esp, 4
cmp dword [ecx], 0
mov dword [ecx + 8], eax
je 0x4b555f
test esi, esi
je 0x4b54cf
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [esp + 0x80], 8
jb 0x4b54e5
push dword [esp + 0x6c]
call fcn.0052558c
add esp, 4
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor eax, eax
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], 0
mov word [esp + 0x6c], ax
test ebx, ebx
je 0x4b550c
push ebx
call esi
test edi, edi
je 0x4b5513
push edi
call esi
cmp dword [esp + 0x68], 8
jb 0x4b5526
push dword [esp + 0x54]
call fcn.0052558c
add esp, 4
xor eax, eax
mov dword [esp + 0x68], 7
cmp dword [esp + 0x98], 8
mov dword [esp + 0x64], 0
mov word [esp + 0x54], ax
jb 0x4b5556
push dword [esp + 0x84]
call fcn.0052558c
add esp, 4
mov eax, dword [esp + 0x14]
jmp 0x4b5814
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x4b5571
mov edx, dword [esp + 0x20]
mov eax, dword [ecx]
push dword [edx]
call dword [eax]
mov dword [esp + 0x14], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov byte [esp + 0x2560], 6
lea esp, [esp]
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 0
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4b55da
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x18]
push eax
push dword [esp + 0x20]
push 9
call fcn.004b4ae0
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x1c], 0
je 0x4b56d0
mov edx, dword [esp + 0x2c]
xor ecx, ecx
cmp ecx, edx
sbb ecx, ecx
neg ecx
mov dword [esp + 0x1c], ecx
test eax, eax
je 0x4b5617
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x18]
push eax
push dword [esp + 0x20]
push 0xb
call fcn.004b4ae0
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x4b56d0
lea eax, [esp + 0x27]
mov byte [esp + 0x27], 0
push eax
lea eax, [edx + 1]
push eax
lea ecx, [esp + 0x38]
call fcn.0045782b
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
sub eax, ecx
je 0x4b56d0
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 0
push eax
push dword [esp + 0x30]
push ecx
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
test ecx, ecx
je 0x4b5689
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x18]
push eax
push dword [esp + 0x20]
push 0xc
call fcn.004b4ae0
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4b56d0
test ecx, ecx
je 0x4b56a8
mov edx, dword [esp + 0x20]
mov eax, dword [ecx]
push dword [edx]
push dword [esp + 0x2c]
push dword [esp + 0x1c]
push dword [esp + 0x3c]
call dword [eax + 4]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
add ecx, eax
mov dword [esp + 0x14], ecx
cmp dword [edx], ecx
je 0x4b56c8
test eax, eax
jne 0x4b55a0
jmp 0x4b56d0
mov dword [esp + 0x1c], 1
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
cmp dword [esp + 0x1c], 0
push dword [eax]
mov edx, dword [ecx]
setne al
movzx eax, al
push eax
call dword [edx + 8]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x18]
push eax
push dword [esp + 0x20]
push 0xd
call fcn.004b4ae0
cmp dword [esp + 0x1c], 0
mov eax, dword [esp + 0x30]
jne 0x4b5771
test eax, eax
je 0x4b5719
push eax
call fcn.0052558c
add esp, 4
test esi, esi
je 0x4b5724
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [esp + 0x80], 8
jb 0x4b573a
push dword [esp + 0x6c]
call fcn.0052558c
add esp, 4
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor eax, eax
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], 0
mov word [esp + 0x6c], ax
test ebx, ebx
je 0x4b5761
push ebx
call esi
test edi, edi
je 0x4b4e90
push edi
call esi
jmp 0x4b4e90
test eax, eax
je 0x4b577e
push eax
call fcn.0052558c
add esp, 4
test esi, esi
je 0x4b5789
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [esp + 0x80], 8
jb 0x4b579f
push dword [esp + 0x6c]
call fcn.0052558c
add esp, 4
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor eax, eax
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], 0
mov word [esp + 0x6c], ax
test ebx, ebx
je 0x4b57c6
push ebx
call esi
test edi, edi
je 0x4b57cd
push edi
call esi
cmp dword [esp + 0x68], 8
jb 0x4b57e0
push dword [esp + 0x54]
call fcn.0052558c
add esp, 4
xor eax, eax
mov dword [esp + 0x68], 7
cmp dword [esp + 0x98], 8
mov dword [esp + 0x64], 0
mov word [esp + 0x54], ax
jb 0x4b5810
push dword [esp + 0x84]
call fcn.0052558c
add esp, 4
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2558]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2540]
xor ecx, esp
call fcn.0052b1ec
mov esp, ebp
pop ebp
ret