Function at 0x552a40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x73a098
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4a8
push esi
xor esi, esi
push edi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov edi, dword [ebp + 0x14]
lea eax, [ebp - 0x28]
push eax
mov ecx, edi
mov dword [ebp - 4], esi
call fcn.00532d80
mov ecx, dword [ebp - 0x28]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x552de2
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x18]
push eax
push esi
call fcn.00552900
test al, al
jne 0x552ddf
lea eax, [ebp - 0x78]
push esi
push eax
call fcn.00550be0
add esp, 8
push 0
push eax
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 2
call fcn.004d67f0
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 3
push eax
mov ecx, edi
call fcn.00532e50
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.004d6cd0
add esp, 0xc
lea ecx, [ebp - 0x60]
call fcn.0047c860
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 6
call fcn.0047c810
lea eax, [ebp - 0x48]
push eax
call fcn.004ee7e0
mov esi, eax
add esp, 4
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x552d7f
push 2
push 0
push esi
call fcn.00705fb5
add esp, 0xc
test eax, eax
jne 0x552c6a
push esi
call fcn.00706f63
push 0
push 0
push esi
mov dword [ebp - 0x10], eax
call fcn.00705fb5
add esp, 0x10
test eax, eax
jne 0x552c6a
push esi
push 0xc
lea eax, [ebp - 0x4b4]
push 1
push eax
call fcn.00705b2a
add esp, 0x10
cmp eax, 0xc
jne 0x552c6a
push 0x52425848
call dword [sym.imp.WS2_32.dll_htonl]
cmp dword [ebp - 0x4b4], eax
jne 0x552c6a
mov ecx, dword [ebp - 0x4ac]
lea eax, [ecx - 1]
cmp eax, 0x3fe
ja 0x552c6a
mov eax, dword [ebp - 0x4b0]
mov edi, 0x424
cmp eax, 1
jne 0x552baa
push esi
push 0x418
push eax
lea eax, [ebp - 0x4a8]
push eax
call fcn.00705b2a
add esp, 0x10
cmp eax, 0x418
jmp 0x552bf2
cmp eax, 2
jne 0x552c6a
push esi
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x4a8]
push 1
push eax
lea edi, [ecx + 0x25]
call fcn.00705b2a
mov ecx, dword [ebp - 0x4ac]
add esp, 0x10
inc ecx
cmp ecx, eax
jne 0x552c6a
push esi
push 0x18
lea eax, [ebp - 0xa8]
push 1
push eax
call fcn.00705b2a
add esp, 0x10
cmp eax, 0x18
jne 0x552c6a
mov ecx, dword [ebp - 0xa4]
add ecx, dword [ebp - 0x9c]
lea eax, [ecx + edi]
cmp eax, dword [ebp - 0x10]
jne 0x552c6a
mov al, byte [ebp + 0x10]
test al, al
je 0x552c23
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0x9c], 0
xor edi, edi
test al, al
push 0x7ff09c
cmove edi, ecx
lea eax, [edi + 0x424]
push eax
call fcn.00503e90
add esp, 8
mov dword [ebp - 0x10], eax
test eax, eax
je 0x552c6a
test edi, edi
je 0x552cc6
push esi
push edi
add eax, 0x424
push 1
push eax
call fcn.00705b2a
add esp, 0x10
cmp edi, eax
je 0x552cc3
push dword [ebp - 0x10]
call fcn.00503df0
add esp, 4
push esi
call fcn.0070526f
add esp, 4
cmp byte [0xa82632], 0
je 0x552d7f
cmp byte [0x8e1dd4], 0
je 0x552d7f
cmp byte [0x8e0c40], 0
mov eax, dword [str.HttpTraceError]
mov ecx, dword [0x8e19b0]
mov dword [ebp - 0x1c], eax
je 0x552d1f
test cl, cl
je 0x552d73
cmp cl, 6
jb 0x552d73
shr ecx, 8
cmp cl, 3
jb 0x552d73
jmp 0x552d23
mov eax, dword [ebp - 0x10]
push dword [ebp - 0x1c]
mov edi, eax
lea esi, [ebp - 0x4b4]
mov ecx, 0x109
rep movsd dword es:[edi], dword [esi]
call fcn.0070526f
add esp, 4
mov dword [ebp - 0x30], 0
call fcn.005d0210
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x30]
push eax
push 0
call fcn.00704f50
add esp, 4
push edx
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00515f00
mov edi, dword [ebp + 8]
add esp, 0x10
mov ecx, edi
push 0x550dd0
push dword [ebp - 0x10]
call fcn.00550060
jmp 0x552d96
test cl, cl
je 0x552d73
mov dword [ebp - 0x1c], 0x16d27ef
lea eax, [ebp - 0x90]
mov esi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x48]
push eax
sub esi, 0xf4b783
call fcn.004d8590
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 7
jb 0x552d4e
mov eax, dword [eax]
push eax
push esi
push dword [0x8e19b4]
push dword [0x8e19b0]
call fcn.005050f0
add esp, 0x10
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x90]
call fcn.0047c810
call fcn.0052dea0
mov ecx, eax
call fcn.0053fa30
mov edi, dword [ebp + 8]
xorps xmm0, xmm0
movq qword [edi], xmm0
mov dword [edi], 0
mov dword [edi + 4], 0
lea ecx, [ebp - 0x48]
call fcn.0047c860
lea ecx, [ebp - 0x28]
call fcn.00494ac0
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x552e17
or esi, 0xffffffff
mov eax, esi
lock xadd dword [ecx + 4], eax
jne 0x552e17
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x14]
lock xadd dword [ecx + 8], esi
dec esi
jne 0x552e17
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp + 8]
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], ecx
mov dword [edi], esi
mov dword [edi + 4], eax
test ecx, ecx
je 0x552e17
or esi, 0xffffffff
mov eax, esi
lock xadd dword [ecx + 4], eax
jne 0x552e17
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x1c]
lock xadd dword [ecx + 8], esi
dec esi
jne 0x552e17
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret