Function at 0x4171f9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x324
mov eax, dword [0x434014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
xor edi, edi
lea eax, [ebp - 0x310]
push eax
push edi
push edi
push edi
push edi
push edi
mov esi, ecx
push edi
push esi
call fcn.004258bb
add esp, 0x24
lea eax, [ebp - 0x310]
push 0x407fac
push eax
call fcn.0041c403
pop ecx
pop ecx
test eax, eax
je 0x41724d
or eax, 0xffffffff
jmp 0x41746d
push edi
push 0x8000080
push 3
push edi
push 1
push SysReAllocStringLen
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41746a
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x417284
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x417245
push edi
lea eax, [ebp - 0x31c]
mov dword [ebp - 0x31c], edi
push eax
push 0x100
lea eax, [ebp - 0x108]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x41746a
mov esi, dword [ebp - 0x31c]
lea edx, [ebp - 0x108]
mov dword [ebp - 0x318], edx
mov ecx, edi
mov dword [ebp - 0x314], ecx
cmp esi, 5
jb 0x4172fd
mov ebx, edx
mov eax, dword [ebx]
cmp eax, dword [0x4083d8]
jne 0x4172fd
movzx eax, byte [ebx + 4]
mov ebx, 0x4083d8
cmp al, byte [ebx + 4]
jne 0x4172fd
xor ecx, ecx
lea edx, [ebp - 0x103]
inc ecx
sub esi, 5
jmp 0x41732d
cmp esi, 6
jb 0x41733f
lea ebx, [ebp - 0x108]
mov eax, dword [ebx]
cmp eax, dword [0x4082c8]
jne 0x41733f
movzx eax, word [ebx + 4]
mov ebx, 0x4082c8
cmp ax, word [ebx + 4]
jne 0x41733f
push 2
pop ecx
lea edx, [ebp - 0x102]
sub esi, 6
mov dword [ebp - 0x31c], esi
mov dword [ebp - 0x318], edx
mov dword [ebp - 0x314], ecx
mov ebx, edi
mov eax, ecx
sub eax, edi
je 0x417384
sub eax, 1
je 0x417384
sub eax, 1
jne 0x4173c0
mov ecx, dword [ebx*4 + 0x40c460]
lea eax, [ecx + 2]
mov dword [ebp - 0x320], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x417361
sub ecx, dword [ebp - 0x320]
sar ecx, 1
add ecx, ecx
cmp esi, ecx
jb 0x4173ba
push ecx
push dword [ebx*4 + 0x40c460]
jmp 0x4173ad
mov ecx, dword [ebx*4 + 0x40c3d0]
lea eax, [ecx + 1]
mov dword [ebp - 0x320], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x417394
sub ecx, dword [ebp - 0x320]
cmp esi, ecx
jb 0x4173ba
push ecx
push dword [ebx*4 + 0x40c3d0]
push edx
call fcn.00431f74
add esp, 0xc
test eax, eax
je 0x4173d1
mov ecx, dword [ebp - 0x314]
inc ebx
cmp ebx, 0x21
jge 0x4173d8
mov edx, dword [ebp - 0x318]
jmp 0x417341
mov eax, ebx
jmp 0x41746d
mov ebx, dword [ebp - 0x318]
lea eax, [ebp - 0x324]
push eax
push ecx
mov ecx, ebx
call fcn.00416a19
test al, al
jne 0x4173f9
mov dword [ebp - 0x318], edi
jmp 0x41740b
mov eax, dword [ebp - 0x320]
mov edi, dword [ebp - 0x324]
mov dword [ebp - 0x318], eax
cmp edi, 0xb
jl 0x417438
push dword [ebp - 0x314]
mov edx, dword [ebp - 0x31c]
mov ecx, ebx
call fcn.00416c1a
cmp eax, 0xffffffff
je 0x417438
lea esi, [eax + 0x12]
mov eax, esi
test esi, esi
js 0x41743b
cmp eax, 0x40
jle 0x417466
jmp 0x41743b
push 0x41
pop esi
cmp edi, 0xc
jg 0x41744b
jne 0x417466
cmp dword [ebp - 0x318], 0
jle 0x417466
push dword [ebp - 0x314]
mov edx, dword [ebp - 0x31c]
mov ecx, ebx
call fcn.004170c9
cmp eax, 0xffffffff
je 0x417466
lea esi, [eax + 0x12]
mov eax, esi
jmp 0x41746d
push 0x41
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00418af8
leave
ret