Function at 0x4db0b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
mov eax, dword [0x629688]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
push 0x5e27b8
push eax
mov dword [ebp - 0x80], edi
call fcn.00589125
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x4db148
call fcn.0058c30d
push dword [eax]
call fcn.0058f5d5
mov edx, eax
add esp, 4
cmp byte [edx], bl
jne 0x4db118
xor ecx, ecx
push ecx
push edx
lea ecx, [edi + 0x1c]
call fcn.004082e0
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00586d1b
mov esp, ebp
pop ebp
ret 4
mov ecx, edx
lea esi, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4db120
sub ecx, esi
push ecx
push edx
lea ecx, [edi + 0x1c]
call fcn.004082e0
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00586d1b
mov esp, ebp
pop ebp
ret 4
push 2
push 0
push ebx
call fcn.0058b95c
push ebx
call fcn.0058cb76
push 0
mov esi, eax
push 0
push ebx
mov dword [ebp - 0x78], esi
call fcn.0058b95c
add esp, 0x1c
mov word [ebp - 0x74], 0
cmp esi, 2
jle 0x4db2d3
push ebx
push 1
lea eax, [ebp - 0x74]
push 2
push eax
call fcn.00589b23
add esp, 0x10
cmp byte [ebp - 0x74], 0xff
jne 0x4db2d3
cmp byte [ebp - 0x73], 0xfe
jne 0x4db2d3
or dword [edi + 0x34], 1
mov eax, esi
cdq
sub eax, edx
sar eax, 1
dec eax
mov dword [ebp - 0x7c], eax
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00582537
push ebx
push 1
lea ecx, [esi - 2]
mov edi, eax
push ecx
push edi
mov dword [ebp - 0x78], edi
call fcn.00589b23
mov eax, dword [ebp - 0x7c]
xor ecx, ecx
mov word [edi + eax*2], cx
movzx eax, word [edi]
mov edx, edi
add esp, 0x14
xor edi, edi
test eax, eax
je 0x4db250
lea ecx, [ecx]
mov ecx, eax
and ecx, 0xfffff800
cmp ecx, 0xd800
jne 0x4db221
movzx ecx, word [edx + 2]
add edx, 2
test cx, cx
je 0x4db250
and eax, 0x3ff
and ecx, 0x3ff
shl eax, 0xa
or eax, ecx
add eax, 0x10000
add edx, 2
test eax, 0xffffff80
jne 0x4db22e
inc edi
jmp 0x4db249
test eax, 0xfffff800
jne 0x4db23a
add edi, 2
jmp 0x4db249
test eax, 0xffff0000
jne 0x4db246
add edi, 3
jmp 0x4db249
add edi, 4
movzx eax, word [edx]
test eax, eax
jne 0x4db1f0
lea eax, [edi + 1]
push eax
call fcn.00582537
mov edx, dword [ebp - 0x78]
mov esi, eax
push edi
mov ecx, esi
call fcn.004db980
push dword [ebp - 0x78]
call fcn.00586d16
mov ecx, dword [ebp - 0x80]
add esp, 0xc
add ecx, 4
push edi
push esi
call fcn.004082e0
push esi
call fcn.00586d16
push edi
push dword [ebp - 0x7c]
lea eax, [ebp - 0x70]
push str.BOM___d_wide_chars_to__d_bytes
push eax
call fcn.00586419
add esp, 0x14
cmp byte [ebp - 0x70], 0
jne 0x4db2a3
xor ecx, ecx
jmp 0x4db2b9
lea ecx, [ebp - 0x70]
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4db2b0
sub ecx, edx
mov esi, dword [ebp - 0x80]
push ecx
lea eax, [ebp - 0x70]
push eax
lea ecx, [esi + 0x1c]
call fcn.004082e0
push ebx
call fcn.005890ae
mov ecx, esi
jmp 0x4db34e
and dword [edi + 0x34], 0xfffffffe
push 0
push 0
push ebx
call fcn.0058b95c
push esi
call fcn.00582537
push ebx
push 1
push dword [ebp - 0x78]
mov esi, eax
push esi
call fcn.00589b23
add esp, 0x20
lea ecx, [edi + 4]
push dword [ebp - 0x78]
push esi
call fcn.004082e0
push esi
call fcn.00586d16
push dword [ebp - 0x78]
lea eax, [ebp - 0x70]
push str._d_bytes
push eax
call fcn.00586419
add esp, 0x10
cmp byte [ebp - 0x70], 0
jne 0x4db328
xor ecx, ecx
jmp 0x4db339
lea ecx, [ebp - 0x70]
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4db330
sub ecx, edx
push ecx
lea eax, [ebp - 0x70]
push eax
lea ecx, [edi + 0x1c]
call fcn.004082e0
push ebx
call fcn.005890ae
mov ecx, edi
add esp, 4
call fcn.004dbe40
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00586d1b
mov esp, ebp
pop ebp
ret 4