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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x13062a0c
push eax
mov dword fs:[0], esp
sub esp, 0x654
push ebx
push ebp
push edi
mov edi, dword [esp + 0x670]
xor ebx, ebx
mov ebp, ecx
cmp edi, ebx
jne 0x12e93f24
xor eax, eax
jmp 0x12e9444e
mov eax, dword [0x13198f68]
mov dword [esp + 0x10], ebx
cmp eax, ebx
mov dword [esp + 0xc], ebx
je 0x12e93f4a
push edi
push 0x1312a064
push 0x1311eac8
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0x10
cmp dword [ebp + 0x71c], ebx
je 0x12e93f5a
cmp dword [ebp + 0x6e8], ebx
je 0x12e93f6f
lea eax, [ebp + 0x720]
mov ecx, ebp
push eax
push edi
call fcn.12e94770
mov dword [ebp + 0x71c], eax
push esi
lea esi, [ebp + 0x6ec]
push 1
push esi
lea ecx, [esp + 0x30]
call fcn.12f560a0
mov eax, dword [0x13198f68]
mov dword [esp + 0x66c], 0
test eax, eax
je 0x12e93fb1
mov eax, dword [ebp + 0x710]
push eax
push 0x13129ff0
push 0x1311eac8
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0x10
mov eax, dword [ebp + 0x710]
mov dword [esp + 0x66c], 0xffffffff
test eax, eax
lea ecx, [esp + 0x28]
je 0x12e94468
call fcn.12f56100
push 0
push 0x80
push 3
push 0
push 7
push SysReAllocStringLen
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
je 0x12e943fe
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov eax, dword [0x13198f68]
test eax, eax
mov dword [esp + 0x20], edi
je 0x12e94026
push edi
push 0x13129f78
push 0x1311eac8
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0x10
test edi, edi
je 0x12e943fe
cmp edi, 0x6400000
jae 0x12e943fe
push edi
call fcn.12f5bf8b
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
je 0x12e943fe
mov ecx, edi
mov edi, dword [esp + 0x10]
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [0x13198f68]
test eax, eax
je 0x12e94082
push 0x13129f24
push 0x1311eac8
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0xc
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x24]
push 0
push eax
mov eax, dword [esp + 0x1c]
push ecx
push edx
push eax
mov dword [esp + 0x38], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x12e943fe
mov eax, dword [0x13198f68]
test eax, eax
je 0x12e940d0
mov ecx, dword [esp + 0x24]
push ecx
push 0x13129eb4
push 0x1311eac8
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0x10
lea ecx, [esp + 0x3c]
call fcn.12f4cba0
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x44]
mov dword [esp + 0x674], 1
call fcn.12f4cc10
push 1
push esi
lea ecx, [esp + 0x30]
call fcn.12f560a0
lea esi, [ebp + 0x70c]
lea ecx, [esp + 0x3c]
push esi
mov byte [esp + 0x670], 2
call fcn.12f4cf30
push 0xffffffffffffffff
push 0
mov ecx, esi
call fcn.12f4cc10
lea ecx, [esp + 0x28]
mov byte [esp + 0x66c], 1
call fcn.12f56100
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x256]
mov word [esp + 0x254], 0
rep stosd dword es:[edi], eax
mov edx, dword [esp + 0x40]
stosw word es:[edi], ax
mov eax, dword [esp + 0x674]
mov dword [esp + 0x18], edx
push eax
call fcn.12f5c44d
push 0x13129e9c
mov esi, eax
call fcn.12f5c44d
add esp, 8
cmp esi, eax
jb 0x12e943ea
sub esi, eax
xor ebx, ebx
mov dword [esp + 0x38], esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], ebx
mov eax, dword [esp + 0x18]
xor edi, edi
cmp eax, ebx
mov byte [esp + 0x66c], 3
mov dword [esp + 0x1c], edi
jbe 0x12e943e5
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x254]
push 0x104
push edx
mov eax, dword [ecx + edi*4]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x18]
push ecx
push edx
push eax
mov ecx, ebp
call fcn.12e94470
cmp eax, ebx
je 0x12e943d4
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x45e]
mov word [esp + 0x45c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x4e]
mov word [esp + 0x4c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x254]
push eax
call fcn.12f5c44d
lea ecx, [eax + esi + 1]
add esp, 4
cmp ecx, 0x104
jae 0x12e94263
mov edx, dword [esp + 0x674]
push esi
lea eax, [esp + 0x460]
push edx
push eax
call fcn.12f5c4ab
lea ecx, [esp + 0x468]
push 0x130c4ed0
push ecx
call fcn.12f5c865
lea edx, [esp + 0x268]
lea eax, [esp + 0x470]
push edx
push eax
call fcn.12f5c865
add esp, 0x1c
mov eax, dword [ebp + 0x724]
xor esi, esi
test eax, eax
jle 0x12e94368
mov ecx, dword [ebp + 0x720]
lea eax, [esp + 0x4c]
push eax
mov edx, dword [ecx + esi*4]
mov edi, dword [edx - 8]
call fcn.12f5c44d
add eax, edi
add esp, 4
cmp eax, 0xff
jae 0x12e942f0
test esi, esi
je 0x12e942ab
lea ecx, [esp + 0x4c]
push 0x130c6c74
push ecx
call fcn.12f5c865
add esp, 8
mov edx, dword [ebp + 0x720]
mov eax, dword [edx + esi*4]
push eax
lea eax, [esp + 0x50]
push eax
call fcn.12f5c865
lea ecx, [esp + 0x54]
push 0x130b7770
push ecx
call fcn.12f5c865
lea edx, [esp + 0x264]
lea eax, [esp + 0x5c]
push edx
push eax
call fcn.12f5c865
mov eax, dword [ebp + 0x724]
add esp, 0x18
inc esi
cmp esi, eax
jl 0x12e94273
jmp 0x12e94360
lea ecx, [esp + 0x4c]
push ecx
call fcn.12f5c44d
add esp, 4
cmp eax, 0xff
jae 0x12e94360
lea edx, [esp + 0x4c]
push 0x13129e90
push edx
call fcn.12f5c865
lea eax, [esp + 0x54]
push eax
call fcn.12f5c44d
add esp, 0xc
cmp eax, 4
jne 0x12e94360
lea ecx, [esp + 0x254]
push ecx
call fcn.12f5c44d
add esp, 4
cmp eax, 0xff
jae 0x12e94360
lea edx, [esp + 0x4c]
push 0x130b7770
push edx
call fcn.12f5c865
lea eax, [esp + 0x25c]
lea ecx, [esp + 0x54]
push eax
push ecx
call fcn.12f5c865
add esp, 0x10
mov eax, dword [ebp + 0x724]
test eax, eax
jne 0x12e9438e
mov eax, dword [ebp + 0x764]
test eax, eax
je 0x12e943e5
lea edx, [esp + 0x254]
push 0x103
lea eax, [esp + 0x50]
push edx
push eax
call fcn.12f5c4ab
add esp, 0xc
lea ecx, [esp + 0x4c]
push ecx
call fcn.12f5c44d
add esp, 4
test eax, eax
jle 0x12e943b4
lea ecx, [esp + 0x4c]
cmp word [ecx], 0x5c
jne 0x12e943ae
mov word [ecx], 0x2f
add ecx, 2
dec eax
jne 0x12e943a3
lea edx, [esp + 0x4c]
lea eax, [esp + 0x45c]
push edx
push eax
push 1
mov ecx, ebp
call fcn.12e94a40
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x1c]
xor ebx, ebx
mov eax, dword [esp + 0x18]
inc edi
cmp edi, eax
mov dword [esp + 0x1c], edi
jb 0x12e941ab
mov ebx, 1
lea ecx, [esp + 0x3c]
mov dword [esp + 0x66c], 0xffffffff
call fcn.12f4cbb0
mov eax, dword [0x13198f68]
pop esi
test eax, eax
je 0x12e9442c
mov ecx, dword [ebp + 0x71c]
mov edx, dword [esp + 0x670]
push ecx
push edx
push ebx
push 0x13129de0
push 0x1311eac8
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0x18
mov eax, dword [esp + 0xc]
test eax, eax
je 0x12e9443d
push eax
call fcn.12f5bf80
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x12e9444c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [esp + 0x660]
pop edi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x660
ret 4
call fcn.12f56100
jmp 0x12e943fe