Function at 0x41715f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push edi
mov edi, ecx
push 0x404738
lea ecx, [ebp - 8]
mov dword [ebp - 0xc], edi
call fcn.0044efe3
xor ebx, ebx
cmp byte [edi + 0x2c], bl
jne 0x4171c8
push 0x404494
lea ecx, [ebp - 0x18]
call fcn.004136fa
push 0x404474
lea ecx, [ebp - 0x10]
call fcn.004136fa
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
mov ecx, edi
call fcn.004162a0
lea ecx, [ebp - 0x10]
call fcn.00413720
lea ecx, [ebp - 0x18]
call fcn.00413720
lea ecx, [ebp - 8]
call fcn.0044f049
jmp 0x417418
mov eax, dword [0x458858]
cmp dword [eax + 0x24], ebx
jne 0x417208
push 0x404710
lea ecx, [ebp - 0x10]
call fcn.004136fa
push 0x4042a4
lea ecx, [ebp - 0x18]
call fcn.004136fa
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
call fcn.004162a0
lea ecx, [ebp - 0x18]
call fcn.00413720
lea ecx, [ebp - 0x10]
jmp 0x4171b6
push esi
push ebx
push ebx
push 0x10000
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
call fcn.0044ecce
push ebx
push ebx
push 0x11000
lea ecx, [ebp - 0x28]
call fcn.0044ecce
mov eax, dword [0x458858]
push dword [eax + 0x20]
mov ecx, dword [ebp - 0x20]
push dword [eax + 0x10]
mov eax, dword [ebp - 0x28]
push 0x404708
push 0xffffffffffffffff
push dword [ebp - 0x1c]
add ecx, eax
push ecx
call fcn.0043d64a
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x20]
add eax, ecx
push 0x404704
push eax
call fcn.0043e6ab
mov esi, eax
add esp, 0x20
cmp esi, ebx
jne 0x4172bc
push 0x4046f0
lea ecx, [ebp - 0x10]
call fcn.004136fa
push 0x4042a4
lea ecx, [ebp - 0x18]
call fcn.004136fa
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
call fcn.004162a0
lea ecx, [ebp - 0x18]
call fcn.00413720
lea ecx, [ebp - 0x10]
call fcn.00413720
jmp 0x4173ff
push 2
push ebx
push esi
call fcn.0043e548
push esi
call fcn.0043e447
push ebx
push ebx
push esi
mov edi, eax
call fcn.0043e548
mov eax, dword [0x458858]
mov eax, dword [eax + 0x20]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x20]
push edi
push eax
push 0x4046c0
push 0xffffffffffffffff
push dword [ebp - 0x1c]
add ecx, edx
push ecx
call fcn.0043d64a
mov ecx, dword [ebp - 0x20]
add esp, 0x34
push eax
mov eax, dword [ebp - 0x28]
add ecx, eax
push ecx
mov ecx, dword [ebp - 0xc]
call fcn.004161ec
mov byte [ebp - 1], 1
jmp 0x4173da
push esi
call fcn.0043dfe4
test eax, eax
pop ecx
jne 0x4173e9
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x30]
push esi
push dword [ebp - 0x2c]
add eax, ecx
push 1
push eax
call fcn.0043e286
add esp, 0x10
mov dword [ebp - 0x2c], eax
jmp 0x4173c9
cmp dword [ebp - 0x1c], 3
jb 0x4173af
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x30]
mov al, byte [ecx + eax]
cmp al, 0xa
je 0x41736e
cmp al, 0xd
je 0x4173a4
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x28]
mov byte [edx + ecx], al
dec dword [ebp - 0x1c]
inc dword [ebp - 0x20]
mov byte [ebp - 1], bl
jmp 0x4173a4
cmp byte [ebp - 1], bl
je 0x417383
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x28]
mov byte [ecx + eax], 0x20
dec dword [ebp - 0x1c]
inc dword [ebp - 0x20]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x28]
mov byte [ecx + eax], 0xd
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x28]
mov byte [eax + ecx + 1], 0xa
sub dword [ebp - 0x1c], 2
add dword [ebp - 0x20], 2
mov byte [ebp - 1], 1
dec dword [ebp - 0x2c]
inc dword [ebp - 0x30]
cmp dword [ebp - 0x2c], ebx
ja 0x417343
push dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
push dword [ebp - 0x28]
call fcn.004161ec
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x20], ebx
cmp eax, ebx
ja 0x417343
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], eax
push esi
call fcn.0043dfab
test eax, eax
pop ecx
je 0x417315
mov ecx, dword [ebp - 0xc]
push 2
push 0x4046bc
call fcn.004161ec
push esi
call fcn.0043df2a
pop ecx
lea ecx, [ebp - 0x28]
call fcn.00414f80
lea ecx, [ebp - 0x38]
call fcn.00414f80
lea ecx, [ebp - 8]
call fcn.0044f049
pop esi
pop edi
mov al, 1
pop ebx
leave
ret 4