Function at 0x530f70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x705f98
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.005137f0
mov ecx, dword [ebp - 0x28]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x53130c
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x18]
push eax
push esi
call fcn.00530e30
test al, al
jne 0x531309
lea eax, [ebp - 0x78]
push esi
push eax
call fcn.0052f160
add esp, 8
push 0
push eax
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 2
call fcn.004c4e30
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 3
push eax
mov ecx, edi
call fcn.005138c0
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.004c54d0
add esp, 0xc
lea ecx, [ebp - 0x60]
call fcn.00471710
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 6
call fcn.004716c0
lea eax, [ebp - 0x48]
push eax
call fcn.004dace0
mov esi, eax
add esp, 4
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x5312a9
push 2
push 0
push esi
call fcn.006d37c5
add esp, 0xc
test eax, eax
jne 0x53119a
push esi
call fcn.006d4773
push 0
push 0
push esi
mov dword [ebp - 0x10], eax
call fcn.006d37c5
add esp, 0x10
test eax, eax
jne 0x53119a
push esi
push 0xc
lea eax, [ebp - 0x4b4]
push 1
push eax
call fcn.006d333a
add esp, 0x10
cmp eax, 0xc
jne 0x53119a
push 0x52425848
call dword [sym.imp.WS2_32.dll_htonl]
cmp dword [ebp - 0x4b4], eax
jne 0x53119a
mov ecx, dword [ebp - 0x4ac]
lea eax, [ecx - 1]
cmp eax, 0x3fe
ja 0x53119a
mov eax, dword [ebp - 0x4b0]
mov edi, 0x424
cmp eax, 1
jne 0x5310da
push esi
push 0x418
push eax
lea eax, [ebp - 0x4a8]
push eax
call fcn.006d333a
add esp, 0x10
cmp eax, 0x418
jmp 0x531122
cmp eax, 2
jne 0x53119a
push esi
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x4a8]
push 1
push eax
lea edi, [ecx + 0x25]
call fcn.006d333a
mov ecx, dword [ebp - 0x4ac]
add esp, 0x10
inc ecx
cmp ecx, eax
jne 0x53119a
push esi
push 0x18
lea eax, [ebp - 0xa8]
push 1
push eax
call fcn.006d333a
add esp, 0x10
cmp eax, 0x18
jne 0x53119a
mov ecx, dword [ebp - 0xa4]
add ecx, dword [ebp - 0x9c]
lea eax, [ecx + edi]
cmp eax, dword [ebp - 0x10]
jne 0x53119a
mov al, byte [ebp + 0x10]
test al, al
je 0x531153
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0x9c], 0
xor edi, edi
test al, al
push 0x7c2a8c
cmove edi, ecx
lea eax, [edi + 0x424]
push eax
call fcn.004e7fe0
add esp, 8
mov dword [ebp - 0x10], eax
test eax, eax
je 0x53119a
test edi, edi
je 0x5311f6
push esi
push edi
add eax, 0x424
push 1
push eax
call fcn.006d333a
add esp, 0x10
cmp edi, eax
je 0x5311f3
push dword [ebp - 0x10]
call fcn.004e7fa0
add esp, 4
push esi
call fcn.006d2a7f
add esp, 4
cmp byte [0x991b00], 0
je 0x5312a9
cmp byte [0x7f0f70], 0
je 0x5312a9
cmp byte [0x7f0008], 0
mov eax, dword [str.HttpTraceError]
mov ecx, dword [0x7f0bac]
mov dword [ebp - 0x1c], eax
je 0x531249
test cl, cl
je 0x53129d
cmp cl, 6
jb 0x53129d
shr ecx, 8
cmp cl, 3
jb 0x53129d
jmp 0x53124d
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.006d2a7f
mov dword [ebp - 0x30], 0
call fcn.006a3c70
push 0
mov dword [ebp - 0x2c], eax
call fcn.006d2760
lea ecx, [ebp - 0x30]
push ecx
push edx
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.006a7bd0
mov edi, dword [ebp + 8]
add esp, 0x18
mov ecx, edi
push 0x52f350
push dword [ebp - 0x10]
call fcn.0052e5b0
jmp 0x5312c0
test cl, cl
je 0x53129d
mov dword [ebp - 0x1c], 0x2037378
lea eax, [ebp - 0x90]
mov esi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x48]
push eax
sub esi, 0x18ea2b4
call fcn.004c6710
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 7
jb 0x531278
mov eax, dword [eax]
push eax
push esi
push dword [0x7f0bb0]
push dword [0x7f0bac]
call fcn.004e9480
add esp, 0x10
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x90]
call fcn.004716c0
call fcn.0050ead0
mov ecx, eax
call fcn.0051f380
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.00471710
lea ecx, [ebp - 0x28]
call fcn.00488c90
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x531341
or esi, 0xffffffff
mov eax, esi
lock xadd dword [ecx + 4], eax
jne 0x531341
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x14]
lock xadd dword [ecx + 8], esi
dec esi
jne 0x531341
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 0x531341
or esi, 0xffffffff
mov eax, esi
lock xadd dword [ecx + 4], eax
jne 0x531341
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x1c]
lock xadd dword [ecx + 8], esi
dec esi
jne 0x531341
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