Function at 0x55f110
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7469f8
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.0053f2e0
mov ecx, dword [ebp - 0x28]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x55f4b2
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x18]
push eax
push esi
call fcn.0055efd0
test al, al
jne 0x55f4af
lea eax, [ebp - 0x78]
push esi
push eax
call fcn.0055d2b0
add esp, 8
push 0
push eax
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 2
call fcn.004e1520
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 3
push eax
mov ecx, edi
call fcn.0053f3b0
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.004e1470
add esp, 0xc
lea ecx, [ebp - 0x60]
call fcn.00481f60
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 6
call fcn.00481f10
lea eax, [ebp - 0x48]
push eax
call fcn.004e1990
mov esi, eax
add esp, 4
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x55f44f
push 2
push 0
push esi
call fcn.007127fc
add esp, 0xc
test eax, eax
jne 0x55f33a
push esi
call fcn.007137aa
push 0
push 0
push esi
mov dword [ebp - 0x10], eax
call fcn.007127fc
add esp, 0x10
test eax, eax
jne 0x55f33a
push esi
push 0xc
lea eax, [ebp - 0x4b4]
push 1
push eax
call fcn.00712371
add esp, 0x10
cmp eax, 0xc
jne 0x55f33a
push 0x52425848
call dword [sym.imp.WS2_32.dll_htonl]
cmp dword [ebp - 0x4b4], eax
jne 0x55f33a
mov ecx, dword [ebp - 0x4ac]
lea eax, [ecx - 1]
cmp eax, 0x3fe
ja 0x55f33a
mov eax, dword [ebp - 0x4b0]
mov edi, 0x424
cmp eax, 1
jne 0x55f27a
push esi
push 0x418
push eax
lea eax, [ebp - 0x4a8]
push eax
call fcn.00712371
add esp, 0x10
cmp eax, 0x418
jmp 0x55f2c2
cmp eax, 2
jne 0x55f33a
push esi
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x4a8]
push 1
push eax
lea edi, [ecx + 0x25]
call fcn.00712371
mov ecx, dword [ebp - 0x4ac]
add esp, 0x10
inc ecx
cmp ecx, eax
jne 0x55f33a
push esi
push 0x18
lea eax, [ebp - 0xa8]
push 1
push eax
call fcn.00712371
add esp, 0x10
cmp eax, 0x18
jne 0x55f33a
mov ecx, dword [ebp - 0xa4]
add ecx, dword [ebp - 0x9c]
lea eax, [ecx + edi]
cmp eax, dword [ebp - 0x10]
jne 0x55f33a
mov al, byte [ebp + 0x10]
test al, al
je 0x55f2f3
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0x9c], 0
xor edi, edi
test al, al
push 0x80e098
cmove edi, ecx
lea eax, [edi + 0x424]
push eax
call fcn.005129a0
add esp, 8
mov dword [ebp - 0x10], eax
test eax, eax
je 0x55f33a
test edi, edi
je 0x55f396
push esi
push edi
add eax, 0x424
push 1
push eax
call fcn.00712371
add esp, 0x10
cmp edi, eax
je 0x55f393
push dword [ebp - 0x10]
call fcn.00512900
add esp, 4
push esi
call fcn.00711ab3
add esp, 4
cmp byte [0xa902b2], 0
je 0x55f44f
cmp byte [0x8f145c], 0
je 0x55f44f
cmp byte [0x8f028c], 0
mov eax, dword [0x8f1020]
mov ecx, dword [0x8f101c]
mov dword [ebp - 0x1c], eax
je 0x55f3ef
test cl, cl
je 0x55f443
cmp cl, 6
jb 0x55f443
shr ecx, 8
cmp cl, 3
jb 0x55f443
jmp 0x55f3f3
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.00711ab3
add esp, 4
mov dword [ebp - 0x30], 0
call fcn.005dc9c0
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x30]
push eax
push 0
call fcn.00711794
add esp, 4
push edx
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00524570
mov edi, dword [ebp + 8]
add esp, 0x10
mov ecx, edi
push 0x55d4a0
push dword [ebp - 0x10]
call fcn.0055c730
jmp 0x55f466
test cl, cl
je 0x55f443
mov dword [ebp - 0x1c], 0x21d27f7
lea eax, [ebp - 0x90]
mov esi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x48]
push eax
sub esi, 0x1a3c77b
call fcn.004db580
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 7
jb 0x55f41e
mov eax, dword [eax]
push eax
push esi
push dword [0x8f1020]
push dword [0x8f101c]
call fcn.00513ba0
add esp, 0x10
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x90]
call fcn.00481f10
call fcn.0053a860
mov ecx, eax
call fcn.0054c060
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.00481f60
lea ecx, [ebp - 0x28]
call fcn.0049a790
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x55f4e7
or esi, 0xffffffff
mov eax, esi
lock xadd dword [ecx + 4], eax
jne 0x55f4e7
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x14]
lock xadd dword [ecx + 8], esi
dec esi
jne 0x55f4e7
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 0x55f4e7
or esi, 0xffffffff
mov eax, esi
lock xadd dword [ecx + 4], eax
jne 0x55f4e7
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x1c]
lock xadd dword [ecx + 8], esi
dec esi
jne 0x55f4e7
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