Function at 0x408580
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov ecx, esi
call fcn.004080a0
mov edi, ebx
xor edx, edx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], edx
mov ecx, dword [esi + 0x10]
mov al, byte [ecx]
cmp al, 0x5c
jne 0x408859
mov edx, dword [esi + 0x18]
sub edx, dword [esi + 4]
add edx, ecx
mov dword [ebp + 8], edx
cmp ecx, dword [esi + 0xc]
jae 0x4085c7
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
jmp 0x408609
cmp byte [esi + 0x1c], 0
jne 0x408609
push dword [esi]
mov eax, dword [esi + 0x14]
push dword [esi + 8]
add dword [esi + 0x18], eax
push 1
push dword [esi + 4]
call fcn.0044b9a6
mov edx, dword [esi + 4]
add esp, 0x10
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], edx
lea ecx, [edx - 1]
add ecx, eax
mov dword [esi + 0xc], ecx
cmp eax, dword [esi + 8]
jae 0x408606
mov byte [edx + eax], 0
inc dword [esi + 0xc]
mov byte [esi + 0x1c], 1
mov edx, dword [ebp + 8]
mov eax, dword [esi + 0x10]
mov cl, byte [eax]
movzx edi, cl
mov dword [ebp - 0xc], edi
cmp byte [edi + 0x498990], 0
mov edi, dword [ebp - 0x14]
je 0x408682
cmp eax, dword [esi + 0xc]
jae 0x40862b
inc eax
mov dword [esi + 0x10], eax
jmp 0x40866a
cmp byte [esi + 0x1c], 0
jne 0x40866a
push dword [esi]
mov eax, dword [esi + 0x14]
push dword [esi + 8]
add dword [esi + 0x18], eax
push 1
push dword [esi + 4]
call fcn.0044b9a6
mov edx, dword [esi + 4]
add esp, 0x10
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], edx
lea ecx, [edx - 1]
add ecx, eax
mov dword [esi + 0xc], ecx
cmp eax, dword [esi + 8]
jae 0x40866a
mov byte [edx + eax], 0
inc dword [esi + 0xc]
mov byte [esi + 0x1c], 1
mov eax, dword [ebp - 0xc]
mov al, byte [eax + 0x498990]
mov byte [ebp + 0xb], al
mov eax, dword [edi + 0xc]
inc eax
cmp eax, dword [edi + 0x10]
jmp 0x4088af
cmp cl, 0x75
jne 0x40883d
cmp eax, dword [esi + 0xc]
jae 0x408696
inc eax
mov dword [esi + 0x10], eax
jmp 0x4086d5
cmp byte [esi + 0x1c], 0
jne 0x4086d5
push dword [esi]
mov eax, dword [esi + 0x14]
push dword [esi + 8]
add dword [esi + 0x18], eax
push 1
push dword [esi + 4]
call fcn.0044b9a6
mov edx, dword [esi + 4]
add esp, 0x10
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], edx
lea ecx, [edx - 1]
add ecx, eax
mov dword [esi + 0xc], ecx
cmp eax, dword [esi + 8]
jae 0x4086d5
mov byte [edx + eax], 0
inc dword [esi + 0xc]
mov byte [esi + 0x1c], 1
xor edi, edi
mov dword [ebp - 0xc], edi
nop word [eax + eax]
mov eax, dword [esi + 0x10]
shl edi, 4
mov cl, byte [eax]
movsx eax, cl
add edi, eax
mov al, cl
sub al, 0x30
cmp al, 9
ja 0x4086fa
sub edi, 0x30
jmp 0x408727
mov al, cl
sub al, 0x41
cmp al, 5
ja 0x408707
sub edi, 0x37
jmp 0x408727
sub cl, 0x61
cmp cl, 5
ja 0x408714
sub edi, 0x57
jmp 0x408727
mov eax, dword [ebp + 8]
mov dword [ebx + 0x18], 8
mov dword [ebx + 0x1c], eax
cmp dword [ebx + 0x18], 0
jne 0x408786
mov eax, dword [esi + 0x10]
cmp eax, dword [esi + 0xc]
jae 0x408735
inc eax
mov dword [esi + 0x10], eax
jmp 0x408774
cmp byte [esi + 0x1c], 0
jne 0x408774
push dword [esi]
mov eax, dword [esi + 0x14]
push dword [esi + 8]
add dword [esi + 0x18], eax
push 1
push dword [esi + 4]
call fcn.0044b9a6
mov edx, dword [esi + 4]
add esp, 0x10
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], edx
lea ecx, [edx - 1]
add ecx, eax
mov dword [esi + 0xc], ecx
cmp eax, dword [esi + 8]
jae 0x408774
mov byte [edx + eax], 0
inc dword [esi + 0xc]
mov byte [esi + 0x1c], 1
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp eax, 4
jl 0x4086e0
jmp 0x408788
xor edi, edi
cmp dword [ebx + 0x18], 0
jne 0x4088fc
lea eax, [edi - 0xd800]
mov dword [ebp - 0xc], eax
cmp eax, 0x3ff
ja 0x408828
mov eax, dword [esi + 0x10]
cmp byte [eax], 0x5c
jne 0x4087c9
mov ecx, esi
call fcn.004080a0
mov eax, dword [esi + 0x10]
cmp byte [eax], 0x75
jne 0x4087c9
mov ecx, esi
call fcn.004080a0
mov edi, dword [ebp + 8]
jmp 0x4087e0
mov edi, dword [ebp + 8]
mov dword [ebx + 0x18], 9
mov dword [ebx + 0x1c], edi
cmp dword [ebx + 0x18], 0
jne 0x4088fc
push edi
push esi
mov ecx, ebx
call fcn.00409300
cmp dword [ebx + 0x18], 0
jne 0x4088fc
cmp eax, 0xdc00
jb 0x408801
cmp eax, 0xdfff
jbe 0x408815
mov dword [ebx + 0x18], 9
mov dword [ebx + 0x1c], edi
cmp dword [ebx + 0x18], 0
jne 0x4088fc
mov edi, dword [ebp - 0xc]
add eax, 0xffff2400
shl edi, 0xa
or edi, eax
add edi, 0x10000
mov edx, edi
lea ecx, [ebp - 0x14]
call fcn.004078f0
mov edx, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
jmp 0x40859f
mov dword [ebx + 0x1c], edx
mov edx, dword [ebp - 8]
mov dword [ebx + 0x18], 0xa
cmp dword [ebx + 0x18], 0
jne 0x408934
jmp 0x4085a2
cmp al, 0x22
je 0x4088d1
cmp al, 0x20
jae 0x40889e
test al, al
mov eax, dword [esi + 0x18]
jne 0x408883
sub eax, dword [esi + 4]
add eax, ecx
mov dword [ebx + 0x18], 0xb
mov dword [ebx + 0x1c], eax
cmp dword [ebx + 0x18], 0
je 0x4085a2
jmp 0x408902
sub eax, dword [esi + 4]
add eax, ecx
mov dword [ebx + 0x18], 0xa
mov dword [ebx + 0x1c], eax
cmp dword [ebx + 0x18], 0
je 0x4085a2
jmp 0x408902
mov ecx, esi
call fcn.004080a0
mov ecx, dword [edi + 0xc]
inc ecx
mov byte [ebp + 0xb], al
cmp ecx, dword [edi + 0x10]
jbe 0x4088ba
push 1
mov ecx, edi
call fcn.004034e0
mov ecx, dword [edi + 0xc]
mov edx, dword [ebp - 8]
inc edx
lea eax, [ecx + 1]
mov dword [edi + 0xc], eax
mov al, byte [ebp + 0xb]
mov byte [ecx], al
jmp 0x40859c
mov ecx, esi
call fcn.004080a0
mov eax, dword [edi + 0xc]
inc eax
cmp eax, dword [edi + 0x10]
jbe 0x4088ea
push 1
mov ecx, edi
call fcn.004034e0
mov ecx, dword [edi + 0xc]
mov edx, dword [ebp - 8]
inc edx
lea eax, [ecx + 1]
mov dword [edi + 0xc], eax
mov byte [ecx], 0
jmp 0x408902
mov edx, dword [ebp - 8]
mov edi, dword [ebp - 0x14]
cmp dword [ebx + 0x18], 0
jne 0x408934
sub dword [edi + 0xc], edx
lea eax, [edx - 1]
mov ecx, dword [edi + 0xc]
push 1
push eax
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.004074c0
test al, al
jne 0x408934
mov eax, dword [esi + 0x18]
sub eax, dword [esi + 4]
add eax, dword [esi + 0x10]
mov dword [ebx + 0x18], 0x10
mov dword [ebx + 0x1c], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc