Function at 0x4da030
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52609f
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x588eb0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x4c], eax
lea eax, [ebx + 0x14]
push eax
mov dword [ebp - 0x5c], vtable.ProtocolFilters::AutoLock.0
mov dword [ebp - 0x58], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [ebp - 0x74]
mov dword [ebp - 4], 0
call fcn.004d41d0
push 0
mov byte [ebp - 4], 1
call fcn.0050b83e
mov dword [ebp - 0x44], eax
add esp, 4
mov eax, edx
mov edx, dword [ebp - 0x44]
mov esi, edx
mov dword [ebp - 0x40], eax
sub esi, dword [ebx + 8]
mov ecx, eax
sbb ecx, dword [ebx + 0xc]
mov dword [ebp - 0x50], ecx
jne 0x4da0c2
cmp esi, 0x258
jb 0x4da129
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], eax
mov eax, dword [ebx]
mov esi, dword [eax]
mov dword [ebp - 0x50], esi
cmp esi, eax
je 0x4da129
mov edi, dword [esi + 0x40]
test edi, edi
je 0x4da117
mov eax, dword [ebp - 0x40]
mov ecx, edx
sub ecx, dword [esi + 0x30]
sbb eax, dword [esi + 0x34]
mov dword [ebp - 0x78], eax
jne 0x4da0f2
cmp ecx, 0x258
jbe 0x4da117
test edi, edi
je 0x4da110
lea ecx, [edi + 0x18]
call fcn.004d4200
mov ecx, edi
call fcn.004d4200
push 0x30
push edi
call fcn.004fbca6
add esp, 8
mov dword [esi + 0x40], 0
lea ecx, [ebp - 0x50]
call fcn.004cfee0
mov esi, dword [ebp - 0x50]
mov edx, dword [ebp - 0x44]
cmp esi, dword [ebx]
jne 0x4da0d3
push dword [ebp - 0x3c]
lea eax, [ebp - 0x28]
mov ecx, ebx
push eax
call fcn.004dcd10
push eax
mov dword [ebp - 0x40], eax
mov ecx, ebx
lea eax, [ebp - 0x3c]
push eax
call fcn.004dc0a0
mov edi, dword [ebx]
mov esi, dword [ebp - 0x3c]
cmp esi, edi
je 0x4da161
lea eax, [esi + 0x10]
mov ecx, ebx
push eax
push dword [ebp - 0x40]
call fcn.004d7280
test al, al
je 0x4da163
mov esi, edi
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x4da199
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4da18d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4da33b
push edx
push ecx
call fcn.004fbca6
mov edi, dword [ebx]
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp esi, edi
je 0x4da2bc
cmp dword [esi + 0x40], 0
push 0
je 0x4da1e5
call fcn.0050b83e
mov ebx, dword [ebp - 0x48]
add esp, 4
mov dword [esi + 0x30], eax
mov ecx, ebx
mov dword [esi + 0x34], edx
push dword [esi + 0x40]
call fcn.004d4230
mov eax, dword [esi + 0x40]
mov ecx, dword [ebp - 0x4c]
add eax, 0x18
push eax
jmp 0x4da303
push dword [esi + 0x28]
push dword [ebx + 0x10]
call fcn.0050ac0d
push dword [ebx + 0x10]
lea eax, [ebp - 0x38]
push 0x10
push 1
push eax
call fcn.0050b4f5
add esp, 0x1c
cmp eax, 0x10
jne 0x4da2bc
movzx ecx, word [ebp - 0x32]
movzx eax, word [ebp - 0x34]
add ecx, eax
push ecx
lea ecx, [ebp - 0x74]
call fcn.004d4460
test al, al
je 0x4da2bc
movzx eax, word [ebp - 0x36]
push 1
push eax
push dword [ebx + 0x10]
call fcn.0050ac0d
add esp, 0xc
lea ecx, [ebp - 0x74]
call fcn.004d4510
lea ecx, [ebp - 0x74]
mov edi, eax
call fcn.004d3710
push dword [ebx + 0x10]
push edi
push 1
push eax
call fcn.0050b4f5
add esp, 0x10
cmp eax, edi
jne 0x4da2bc
push 0
lea ecx, [ebp - 0x74]
call fcn.004d4510
push eax
lea ecx, [ebp - 0x74]
call fcn.004d3710
push eax
call fcn.004d96b0
movzx eax, word [ebp - 0x34]
lea ecx, [ebp - 0x74]
add esp, 0xc
push 1
push eax
call fcn.004d3710
mov ebx, dword [ebp - 0x48]
mov ecx, ebx
push eax
call fcn.004d4370
test al, al
je 0x4da2bc
movzx eax, word [ebp - 0x32]
lea ecx, [ebp - 0x74]
push 1
push eax
call fcn.004d3710
movzx ecx, word [ebp - 0x34]
mov edi, dword [ebp - 0x4c]
add eax, ecx
push eax
mov ecx, edi
call fcn.004d4370
test al, al
jne 0x4da2c0
xor bl, bl
jmp 0x4da30a
push 0
call fcn.0050b83e
push 0x30
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], edx
call fcn.004fbcb4
add esp, 8
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x4da2eb
mov ecx, eax
call fcn.004d6b40
jmp 0x4da2ed
xor eax, eax
push ebx
mov ecx, eax
mov byte [ebp - 4], 1
mov dword [esi + 0x40], eax
call fcn.004d4230
mov ecx, dword [esi + 0x40]
push edi
add ecx, 0x18
call fcn.004d4230
mov bl, 1
lea ecx, [ebp - 0x74]
call fcn.004d4200
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fbc95
mov esp, ebp
pop ebp
ret 0xc
call fcn.00501cb1
int3