Function at 0x4055a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4639f9
mov eax, dword fs:[0]
push eax
sub esp, 0x49c
mov eax, dword [0x482308]
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 edi, dword [ebp + 0x8c]
push 0x47a750
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0
call fcn.00411afa
push eax
call fcn.004544d1
mov ebx, eax
add esp, 8
mov dword [ebp - 0x4a8], ebx
test ebx, ebx
jne 0x405604
xor esi, esi
jmp 0x405a2d
push 0x4000
call fcn.00446176
push 0x4000
mov esi, eax
push 0
push esi
mov dword [ebp - 0x4a4], esi
call fcn.00447640
push ebx
push 0x1fff
push 2
push esi
call fcn.004546b9
push 0x100
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.00447640
push 0x100
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.00447640
push 0x100
lea eax, [ebp - 0x310]
push 0
push eax
call fcn.00447640
add esp, 0x44
lea eax, [ebp - 0x410]
push 0x100
push 0
push eax
call fcn.00447640
mov ebx, dword [sym.imp.SHLWAPI.dll_StrStrW]
add esp, 0xc
push 0x47a754
push esi
call ebx
mov dword [ebp - 0x4a0], eax
test eax, eax
je 0x405a14
nop
lea esi, [eax + 0x1a]
push str.__IMAGE_
push esi
call ebx
mov ebx, eax
test ebx, ebx
je 0x405a0e
push 0x47a784
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrW]
mov esi, eax
test esi, esi
je 0x405a0e
xor eax, eax
mov word [esi], ax
mov eax, dword [ebp - 0x4a0]
add eax, 0x1a
push eax
call fcn.0045428e
add esp, 4
lea eax, [esi + 2]
mov dword [ebp - 0x4a0], eax
push 0x47a788
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrW]
mov dword [ebp - 0x49c], eax
test eax, eax
je 0x405755
cmp eax, ebx
ja 0x405755
add eax, 0xc
push str.__NAME_
push eax
mov dword [ebp - 0x498], eax
call dword [sym.imp.SHLWAPI.dll_StrStrW]
mov esi, eax
test esi, esi
je 0x405755
cmp esi, ebx
ja 0x405755
sub eax, dword [ebp - 0x49c]
mov ecx, 0x7f
sar eax, 1
sub eax, 6
cmp eax, 0x7f
cmovg eax, ecx
push eax
push dword [ebp - 0x498]
lea eax, [ebp - 0x110]
push 0x80
push eax
call fcn.004543a1
add esp, 0x10
push str._DISPLAYNAME_
push dword [ebp - 0x4a0]
call dword [sym.imp.SHLWAPI.dll_StrStrW]
mov dword [ebp - 0x498], eax
test eax, eax
je 0x4057b9
cmp eax, ebx
ja 0x4057b9
add eax, 0x1a
push str.__DISPLAYNAME_
push eax
mov dword [ebp - 0x49c], eax
call dword [sym.imp.SHLWAPI.dll_StrStrW]
mov esi, eax
test esi, esi
je 0x4057b9
cmp esi, ebx
ja 0x4057b9
sub eax, dword [ebp - 0x498]
sar eax, 1
sub eax, 0xd
push eax
push dword [ebp - 0x49c]
lea eax, [ebp - 0x310]
push 0x80
push eax
call fcn.004543a1
add esp, 0x10
push str._DISPLAYDESCRIPTION_
push dword [ebp - 0x4a0]
call dword [sym.imp.SHLWAPI.dll_StrStrW]
mov dword [ebp - 0x498], eax
test eax, eax
je 0x405828
cmp eax, ebx
ja 0x405828
add eax, 0x28
push str.__DISPLAYDESCRIPTION_
push eax
mov dword [ebp - 0x49c], eax
call dword [sym.imp.SHLWAPI.dll_StrStrW]
mov esi, eax
test esi, esi
je 0x405828
cmp esi, ebx
ja 0x405828
sub eax, dword [ebp - 0x498]
mov ecx, 0x7f
sar eax, 1
sub eax, 0x14
cmp eax, 0x7f
cmovg eax, ecx
push eax
push dword [ebp - 0x49c]
lea eax, [ebp - 0x410]
push 0x80
push eax
call fcn.004543a1
add esp, 0x10
push str._DESCRIPTION_
push dword [ebp - 0x4a0]
call dword [sym.imp.SHLWAPI.dll_StrStrW]
mov dword [ebp - 0x498], eax
test eax, eax
je 0x405893
cmp eax, ebx
ja 0x405893
add eax, 0x1a
push str.__DESCRIPTION_
push eax
mov dword [ebp - 0x49c], eax
call dword [sym.imp.SHLWAPI.dll_StrStrW]
mov esi, eax
test esi, esi
je 0x405893
cmp esi, ebx
ja 0x405893
sub eax, dword [ebp - 0x498]
mov ecx, 0x7f
sar eax, 1
sub eax, 0xd
cmp eax, 0x7f
cmovg eax, ecx
push eax
push dword [ebp - 0x49c]
lea eax, [ebp - 0x210]
push ecx
push eax
call fcn.004543a1
add esp, 0x10
lea ecx, [ebp - 0x310]
add esi, 2
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4058a0
sub ecx, edx
sar ecx, 1
je 0x4058ce
push 0xffffffffffffffff
lea eax, [ebp - 0x310]
push eax
lea ecx, [ebp - 0x494]
call fcn.004143fa
mov byte [ebp - 4], 1
jmp 0x40596d
lea ecx, [ebp - 0x410]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4058d7
sub ecx, edx
sar ecx, 1
je 0x405902
push 0xffffffffffffffff
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x494]
call fcn.004143fa
mov byte [ebp - 4], 2
jmp 0x40596d
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405910
sub ecx, edx
sar ecx, 1
je 0x40593b
push 0xffffffffffffffff
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x494]
call fcn.004143fa
mov byte [ebp - 4], 3
jmp 0x40596d
lea ecx, [ebp - 0x110]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405944
sub ecx, edx
sar ecx, 1
je 0x4059a3
push 0xffffffffffffffff
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x494]
call fcn.004143fa
mov byte [ebp - 4], 4
mov eax, dword [edi + 4]
lea ecx, [ebp - 0x494]
push ecx
cmp eax, dword [edi + 8]
je 0x40598c
mov ecx, eax
call fcn.004143d5
add dword [edi + 4], 0x84
jmp 0x405994
push eax
mov ecx, edi
call fcn.00406df0
lea ecx, [ebp - 0x494]
mov byte [ebp - 4], 0
call fcn.00414510
push 0x100
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.00447640
push 0x100
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.00447640
push 0x100
lea eax, [ebp - 0x310]
push 0
push eax
call fcn.00447640
push 0x100
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.00447640
mov ebx, dword [sym.imp.SHLWAPI.dll_StrStrW]
add esp, 0x30
push 0x47a754
push esi
call ebx
mov dword [ebp - 0x4a0], eax
test eax, eax
jne 0x4056a0
mov esi, dword [ebp - 0x4a4]
push esi
call fcn.00445e20
push dword [ebp - 0x4a8]
call fcn.0044d882
add esp, 8
mov esi, 1
lea ecx, [ebp + 8]
call fcn.00414510
mov eax, esi
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.00445e0f
mov esp, ebp
pop ebp
ret 0x88