Function at 0x41d490
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x38]
push eax
push edi
mov esi, ecx
mov dword [ebp - 8], 0
mov byte [ebp - 1], 1
call fcn.0043bd23
add esp, 8
test eax, eax
jne 0x41d5da
cmp dword [ebp - 0x24], eax
jne 0x41d512
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [ecx], eax
mov dword [edx], eax
mov eax, dword [esi + 0xa0]
push eax
call fcn.0042ef90
add esp, 4
cmp dword [esi + 0x98], 0
je 0x41d4f3
mov ecx, dword [esi + 0x9c]
push ecx
call fcn.0042efb0
add esp, 4
mov edx, dword [esi + 0xa0]
push edx
call fcn.0042efb0
add esp, 4
xor eax, eax
cmp byte [ebp + 0x24], al
pop edi
sete al
pop esi
mov esp, ebp
pop ebp
ret 0x20
lea eax, [ebp - 0x68]
push eax
push edi
call fcn.0043bd23
add esp, 8
test eax, eax
jne 0x41d549
mov eax, dword [ebp - 0x62]
test eax, 0x4000
je 0x41d534
push 0x1ff
jmp 0x41d540
test eax, 0x8000
je 0x41d549
push 0x1b6
push edi
call fcn.0044e26b
add esp, 8
cmp byte [esi + 0xa4], 0
je 0x41d582
mov ecx, dword [esi + 0x9c]
push ecx
call fcn.0042ef90
mov edx, dword [esi + 0xa0]
push edx
call fcn.0042ef90
mov eax, dword [esi + 0x98]
mov byte [eax], 1
mov ecx, dword [esi + 0xa0]
push ecx
call fcn.0042efb0
add esp, 0xc
push 0x44f80c
push edi
call fcn.0043cc0b
add esp, 8
mov dword [ebp + 0x24], eax
test eax, eax
jne 0x41d5e4
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x41d5a4
mov dword [eax], 0
mov edx, dword [esi + 0xa0]
push edx
call fcn.0042ef90
add esp, 4
cmp dword [esi + 0x98], 0
je 0x41d5cb
mov eax, dword [esi + 0x9c]
push eax
call fcn.0042efb0
add esp, 4
mov ecx, dword [esi + 0xa0]
push ecx
call fcn.0042efb0
add esp, 4
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 0x20
mov edi, dword [ebp + 0x20]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebx], 0
test edi, edi
jne 0x41d600
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp + 0x1c]
mov dword [ebp + 0x20], eax
mov edi, eax
mov dword [ebp + 8], 0
cmp byte [ebp + 0x18], 0
je 0x41d644
cmp byte [ebp + 0x14], 0
je 0x41d62b
lea edx, [edi + 1]
push edx
mov ecx, esi
call fcn.00419560
mov edx, dword [ebp - 0x24]
mov ecx, eax
mov dword [ebx], eax
mov byte [edx + ecx], 0
jmp 0x41d65e
lea eax, [edi + 1]
push eax
call fcn.0043b28d
mov edx, dword [ebp - 0x24]
mov ecx, eax
mov dword [ebx], eax
add esp, 4
mov byte [edx + ecx], 0
jmp 0x41d65e
cmp byte [ebp + 0x14], 0
push edi
je 0x41d654
mov ecx, esi
call fcn.00419560
jmp 0x41d65c
call fcn.0043b28d
add esp, 4
mov dword [ebx], eax
cmp dword [ebx], 0
jne 0x41d6c0
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
cmp eax, 0x1e
jl 0x41d607
cmp dword [ebx], 0
jne 0x41d6c0
mov eax, dword [esi + 0xa0]
push eax
call fcn.0042ef90
add esp, 4
cmp dword [esi + 0x98], 0
je 0x41d6a6
mov ecx, dword [esi + 0x9c]
push ecx
call fcn.0042efb0
add esp, 4
mov edx, dword [esi + 0xa0]
push edx
call fcn.0042efb0
add esp, 4
pop ebx
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 0x20
mov eax, dword [ebx]
mov dword [ebp + 0x18], eax
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x41d6ce
mov dword [eax], edi
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x41d745
mov ecx, dword [ebp + 0x24]
push 0
push eax
push ecx
call fcn.0043e0b0
add esp, 0xc
test eax, eax
je 0x41d742
mov edx, dword [ebp + 0x24]
push edx
call fcn.0043c7b7
mov eax, dword [esi + 0xa0]
push eax
call fcn.0042ef90
add esp, 8
cmp dword [esi + 0x98], 0
je 0x41d718
mov ecx, dword [esi + 0x9c]
push ecx
call fcn.0042efb0
add esp, 4
mov edx, dword [esi + 0xa0]
push edx
call fcn.0042efb0
mov eax, dword [ebx]
add esp, 4
push eax
mov ecx, esi
call fcn.004197d0
mov dword [ebx], 0
pop ebx
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 0x20
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp - 0x24]
sub ecx, eax
je 0x41d86d
jmp 0x41d755
mov edi, dword [ebp + 0x20]
cmp dword [ebp - 8], edi
jae 0x41d86d
mov eax, dword [esi + 0x120]
test eax, eax
je 0x41d78c
push eax
call fcn.0042ef90
mov eax, dword [esi + 0x120]
mov dl, byte [esi + 0x8a]
push eax
mov byte [ebp + 0x17], dl
call fcn.0042efb0
add esp, 8
cmp byte [ebp + 0x17], 0
je 0x41d7a9
mov ecx, dword [ebx]
push ecx
mov ecx, esi
call fcn.004197d0
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x41d7a3
mov dword [edi], 0
mov byte [ebp - 1], 0
jmp 0x41d7ac
mov edi, dword [ebp + 0x10]
cmp byte [esi + 0x8d], 0
je 0x41d804
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi + 0x120]
test eax, eax
je 0x41d7ec
push eax
call fcn.0042ef90
mov edx, dword [esi + 0x120]
mov bl, byte [esi + 0x8a]
push edx
call fcn.0042efb0
add esp, 8
test bl, bl
mov ebx, dword [ebp + 0xc]
je 0x41d804
mov edi, dword [ebp + 0x10]
mov eax, dword [ebx]
push eax
mov ecx, esi
call fcn.004197d0
test edi, edi
je 0x41d800
mov dword [edi], 0
mov byte [ebp - 1], 0
mov edi, dword [ebp - 0x24]
sub edi, dword [ebp - 8]
sub edi, dword [ebp + 0x1c]
cmp edi, 0x1000
jbe 0x41d81a
mov edi, 0x1000
mov ecx, dword [ebp + 0x24]
mov edx, dword [ebp + 0x18]
push ecx
push edi
push 1
push edx
call fcn.0043ca75
add esp, 0x10
cmp eax, edi
jne 0x41d84c
mov ecx, dword [ebp - 8]
add dword [ebp + 0x18], eax
add ecx, eax
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp + 0x1c]
mov dword [ebp - 8], ecx
cmp ecx, eax
jb 0x41d752
jmp 0x41d86d
mov ecx, dword [ebx]
push ecx
mov ecx, esi
call fcn.004197d0
mov eax, dword [ebp + 0x10]
mov dword [ebx], 0
test eax, eax
je 0x41d869
mov dword [eax], 0
mov byte [ebp - 1], 0
mov edx, dword [ebp + 0x24]
push edx
call fcn.0043c7b7
mov eax, dword [esi + 0xa0]
push eax
call fcn.0042ef90
add esp, 8
cmp dword [esi + 0x98], 0
je 0x41d89d
mov ecx, dword [esi + 0x9c]
push ecx
call fcn.0042efb0
add esp, 4
mov edx, dword [esi + 0xa0]
push edx
call fcn.0042efb0
mov al, byte [ebp - 1]
add esp, 4
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x20