Function at 0x4162f8
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff6c
mov eax, 0x4de87c
call fcn.004c9c18
mov word [ebp - 0x58], 8
mov edx, 0x4de40b
lea eax, [ebp - 8]
call fcn.004d443c
inc dword [ebp - 0x4c]
lea edx, [ebp - 8]
mov eax, dword [ebp + 8]
add eax, 0x10
call fcn.004d45cc
dec dword [ebp - 0x4c]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004d459c
mov word [ebp - 0x58], 0x14
mov edx, 0x4de410
lea eax, [ebp - 0xc]
call fcn.004d443c
inc dword [ebp - 0x4c]
lea edx, [ebp - 0xc]
mov eax, dword [ebp + 8]
add eax, 0x1c
call fcn.004d45cc
dec dword [ebp - 0x4c]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004d459c
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
call fcn.0043e73c
test al, al
jne 0x416392
xor eax, eax
mov edx, dword [ebp - 0x68]
mov dword fs:[0], edx
jmp 0x416926
push 0x80
call fcn.004c8e2c
pop ecx
mov dword [ebp - 0x6c], eax
xor ecx, ecx
mov dword [ebp - 0x70], ecx
xor eax, eax
mov dword [ebp - 0x74], eax
xor edx, edx
mov dword [ebp - 0x78], edx
mov byte [ebp - 0x79], 0
push 0
push 0x20
push 3
push 0
push 1
push 0x80000000
mov ecx, dword [ebp + 8]
cmp dword [ecx], 0
je 0x4163d1
mov eax, dword [ebp + 8]
mov edx, dword [eax]
jmp 0x4163d6
mov edx, 0x4de412
push edx
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0x70], eax
push 0
push dword [ebp - 0x70]
call sub.kernel32.dll_GetFileSize
mov dword [ebp - 0x78], eax
push 0
push 0
mov eax, dword [ebp - 0x78]
add eax, 0xffffff80
push eax
push dword [ebp - 0x70]
call sub.kernel32.dll_SetFilePointer
push 0
lea ecx, [ebp - 0x74]
push ecx
push 0x80
push dword [ebp - 0x6c]
push dword [ebp - 0x70]
call sub.kernel32.dll_ReadFile
push dword [ebp - 0x70]
call sub.kernel32.dll_CloseHandle
mov word [ebp - 0x58], 0x2c
mov edx, 0x4de413
lea eax, [ebp - 4]
call fcn.004d443c
inc dword [ebp - 0x4c]
mov word [ebp - 0x58], 0x20
xor ecx, ecx
mov dword [ebp - 0x80], ecx
mov word [ebp - 0x58], 0x38
mov eax, dword [ebp - 0x6c]
mov edx, dword [ebp - 0x80]
mov dl, byte [eax + edx]
lea eax, [ebp - 0x10]
call fcn.004d450c
inc dword [ebp - 0x4c]
lea edx, [ebp - 0x10]
lea eax, [ebp - 4]
call fcn.004d45e0
dec dword [ebp - 0x4c]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004d459c
inc dword [ebp - 0x80]
cmp dword [ebp - 0x80], 0x80
jl 0x41643e
mov word [ebp - 0x58], 0x44
xor ecx, ecx
mov dword [ebp - 0x14], ecx
lea eax, [ebp - 0x14]
push eax
inc dword [ebp - 0x4c]
lea eax, [ebp - 4]
mov ecx, 3
mov edx, 1
call fcn.004d4760
lea eax, [ebp - 0x14]
push eax
mov edx, 0x4de414
lea eax, [ebp - 0x18]
call fcn.004d443c
inc dword [ebp - 0x4c]
lea edx, [ebp - 0x18]
pop eax
call fcn.004d4680
push eax
dec dword [ebp - 0x4c]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004d459c
dec dword [ebp - 0x4c]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004d459c
pop ecx
test cl, cl
je 0x4164ec
mov byte [ebp - 0x79], 1
jmp 0x41650f
xor eax, eax
push eax
dec dword [ebp - 0x4c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004d459c
pop eax
mov edx, dword [ebp - 0x68]
mov dword fs:[0], edx
jmp 0x416926
mov word [ebp - 0x58], 0x50
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
lea eax, [ebp - 0x1c]
push eax
inc dword [ebp - 0x4c]
lea eax, [ebp - 4]
mov ecx, 0x1e
mov edx, 4
call fcn.004d4760
lea edx, [ebp - 0x1c]
mov eax, dword [ebp + 8]
add eax, 4
call fcn.004d45cc
dec dword [ebp - 0x4c]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.004d459c
mov word [ebp - 0x58], 0x5c
xor ecx, ecx
mov dword [ebp - 0x20], ecx
lea eax, [ebp - 0x20]
push eax
inc dword [ebp - 0x4c]
lea eax, [ebp - 4]
mov ecx, 0x1e
mov edx, 0x22
call fcn.004d4760
lea edx, [ebp - 0x20]
mov eax, dword [ebp + 8]
add eax, 8
call fcn.004d45cc
dec dword [ebp - 0x4c]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.004d459c
mov word [ebp - 0x58], 0x68
xor ecx, ecx
mov dword [ebp - 0x24], ecx
lea eax, [ebp - 0x24]
push eax
inc dword [ebp - 0x4c]
lea eax, [ebp - 4]
mov ecx, 0x1e
mov edx, 0x40
call fcn.004d4760
lea edx, [ebp - 0x24]
mov eax, dword [ebp + 8]
add eax, 0xc
call fcn.004d45cc
dec dword [ebp - 0x4c]
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.004d459c
mov word [ebp - 0x58], 0x74
xor ecx, ecx
mov dword [ebp - 0x28], ecx
lea eax, [ebp - 0x28]
push eax
inc dword [ebp - 0x4c]
lea eax, [ebp - 4]
mov ecx, 4
mov edx, 0x5e
call fcn.004d4760
lea edx, [ebp - 0x28]
mov eax, dword [ebp + 8]
add eax, 0x10
call fcn.004d45cc
dec dword [ebp - 0x4c]
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.004d459c
mov dword [ebp - 0x84], 1
mov word [ebp - 0x58], 0x20
cmp dword [ebp - 0x84], 5
jge 0x4166e5
mov ecx, dword [ebp + 8]
add ecx, 0x10
mov dword [ebp - 0x88], ecx
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x8c], eax
push dword [ebp - 0x8c]
push dword [ebp - 0x88]
call fcn.004d43b8
add esp, 8
mov eax, dword [ebp - 0x88]
call fcn.004d4708
mov edx, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x88]
add edx, dword [ecx]
dec edx
xor eax, eax
mov al, byte [edx]
push eax
call fcn.004cc228
pop ecx
test eax, eax
jg 0x4166d2
mov edx, dword [ebp + 8]
add edx, 0x10
mov dword [ebp - 0x90], edx
mov ecx, dword [ebp - 0x84]
mov dword [ebp - 0x94], ecx
push dword [ebp - 0x94]
push dword [ebp - 0x90]
call fcn.004d43b8
add esp, 8
mov eax, dword [ebp - 0x90]
call fcn.004d4708
mov edx, dword [ebp - 0x90]
mov ecx, dword [edx]
add ecx, dword [ebp - 0x94]
dec ecx
mov byte [ecx], 0
inc dword [ebp - 0x84]
cmp dword [ebp - 0x84], 5
jl 0x416634
mov word [ebp - 0x58], 0x80
xor eax, eax
mov dword [ebp - 0x2c], eax
lea edx, [ebp - 0x2c]
push edx
inc dword [ebp - 0x4c]
lea eax, [ebp - 4]
mov ecx, 0x1e
mov edx, 0x62
call fcn.004d4760
lea edx, [ebp - 0x2c]
mov eax, dword [ebp + 8]
add eax, 0x18
call fcn.004d45cc
dec dword [ebp - 0x4c]
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.004d459c
push 0x80
lea ecx, [ebp - 4]
push ecx
call fcn.004d43b8
add esp, 8
lea eax, [ebp - 4]
call fcn.004d4708
mov edx, dword [ebp - 4]
add edx, 0x7f
cmp byte [edx], 0x93
jbe 0x4167b8
mov word [ebp - 0x58], 0x8c
lea eax, [ebp - 0x30]
mov edx, 0xff
call fcn.004d4558
inc dword [ebp - 0x4c]
lea edx, [ebp - 0x30]
mov eax, dword [ebp + 8]
add eax, 0x20
call fcn.004d45cc
dec dword [ebp - 0x4c]
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.004d459c
mov word [ebp - 0x58], 0x98
mov edx, 0x4de418
lea eax, [ebp - 0x34]
call fcn.004d443c
inc dword [ebp - 0x4c]
lea edx, [ebp - 0x34]
mov eax, dword [ebp + 8]
add eax, 0x14
call fcn.004d45cc
dec dword [ebp - 0x4c]
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.004d459c
jmp 0x41683f
mov word [ebp - 0x58], 0xa4
push 0x80
lea ecx, [ebp - 4]
push ecx
call fcn.004d43b8
add esp, 8
lea eax, [ebp - 4]
call fcn.004d4708
mov edx, dword [ebp - 4]
add edx, 0x7f
movzx edx, byte [edx]
lea eax, [ebp - 0x38]
call fcn.004d4558
inc dword [ebp - 0x4c]
lea edx, [ebp - 0x38]
mov eax, dword [ebp + 8]
add eax, 0x20
call fcn.004d45cc
dec dword [ebp - 0x4c]
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.004d459c
push 0x80
lea ecx, [ebp - 4]
push ecx
call fcn.004d43b8
add esp, 8
lea eax, [ebp - 4]
call fcn.004d4708
mov edx, dword [ebp - 4]
add edx, 0x7f
movzx edx, byte [edx]
shl edx, 2
add edx, 0x4dd554
mov eax, dword [ebp + 8]
add eax, 0x14
call fcn.004d45cc
mov word [ebp - 0x58], 0xb0
push 0x7f
lea ecx, [ebp - 4]
push ecx
call fcn.004d43b8
add esp, 8
lea eax, [ebp - 4]
call fcn.004d4708
mov edx, dword [ebp - 4]
add edx, 0x7e
xor eax, eax
mov al, byte [edx]
xor edx, edx
mov dword [ebp - 0x3c], edx
lea edx, [ebp - 0x3c]
inc dword [ebp - 0x4c]
call fcn.0043e2c0
lea edx, [ebp - 0x3c]
mov eax, dword [ebp + 8]
add eax, 0x1c
call fcn.004d45cc
dec dword [ebp - 0x4c]
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.004d459c
mov word [ebp - 0x58], 0xbc
lea eax, [ebp - 0x40]
mov edx, 0x20
call fcn.004d4558
inc dword [ebp - 0x4c]
lea edx, [ebp - 0x40]
mov eax, dword [ebp + 8]
add eax, 0x1c
call fcn.004d4680
push eax
dec dword [ebp - 0x4c]
lea eax, [ebp - 0x40]
mov edx, 2
call fcn.004d459c
pop ecx
test cl, cl
je 0x4168fe
mov word [ebp - 0x58], 0xc8
lea eax, [ebp - 0x44]
xor edx, edx
call fcn.004d4558
inc dword [ebp - 0x4c]
lea edx, [ebp - 0x44]
mov eax, dword [ebp + 8]
add eax, 0x1c
call fcn.004d45cc
dec dword [ebp - 0x4c]
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.004d459c
push dword [ebp - 0x6c]
call fcn.004c8c64
pop ecx
mov al, byte [ebp - 0x79]
push eax
dec dword [ebp - 0x4c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004d459c
pop eax
mov edx, dword [ebp - 0x68]
mov dword fs:[0], edx
mov esp, ebp
pop ebp
ret