Function at 0x10023f36
Capabilities:
Get file size
Read file via mapping

Disassembly:
push 0x22c
mov eax, 0x1006a200
call fcn.100521f6
xor eax, eax
xor esi, esi
push 0x206
mov word [ebp - 0x220], ax
mov edi, edx
lea eax, [ebp - 0x21e]
push esi
push eax
mov ebx, ecx
mov dword [ebp - 0x228], edi
mov dword [edi], esi
call fcn.10051a60
add esp, 0xc
push 0x104
lea eax, [ebp - 0x220]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocString
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x238], ebx
mov dword [ebp - 4], esi
cmp ebx, 0xffffffff
jne 0x10023fb9
xor eax, eax
call fcn.10052279
ret
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x234], eax
cmp eax, esi
jne 0x10023fd4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10023fb1
push esi
push esi
push esi
push 2
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x224], eax
mov byte [ebp - 4], 1
push esi
cmp eax, esi
jne 0x10023ffd
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push ebx
call esi
jmp 0x10023fb1
push esi
push esi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [edi], eax
cmp eax, esi
jne 0x10024033
cmp dword [ebp - 0x224], 0xffffffff
je 0x10024023
push dword [ebp - 0x224]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x238]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x10023fb3
mov ecx, dword [eax + 0x3c]
movzx edx, word [ecx + eax + 6]
cmp dx, si
jbe 0x100240ef
movzx edx, dx
imul edx, edx, 0x28
add edx, ecx
lea eax, [edx + eax + 0xd0]
mov ebx, dword [eax + 0x14]
add ebx, dword [eax + 0x10]
cmp ebx, 0xffffffff
je 0x100240ef
cmp ebx, dword [ebp - 0x234]
jge 0x100240ef
mov esi, 0x1007abf4
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x18]
movsb byte es:[edi], byte [esi]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002407e
sub eax, edx
mov esi, eax
lea eax, [esi + 1]
push eax
mov dword [ebp - 0x230], esi
call fcn.1004c552
mov ecx, dword [ebp - 0x228]
mov ecx, dword [ecx]
push esi
add ecx, ebx
push ecx
push eax
mov dword [ebp - 0x22c], eax
call fcn.100545a0
add esp, 0x10
mov ecx, esi
mov esi, dword [ebp - 0x22c]
lea edi, [ebp - 0x18]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x1002412e
mov eax, dword [ebp - 0x228]
mov eax, dword [eax]
mov ecx, dword [eax + 0x3c]
mov ebx, dword [ecx + eax + 8]
cmp ebx, dword [ebp - 0x234]
jle 0x10024107
push dword [ebp - 0x22c]
call fcn.1004dd0c
mov edi, dword [ebp - 0x228]
pop ecx
xor esi, esi
mov eax, dword [edi]
cmp eax, esi
je 0x1002400e
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [edi], esi
jmp 0x1002400e
push dword [ebp - 0x230]
mov esi, dword [ebp - 0x22c]
add eax, ebx
push eax
push esi
call fcn.100545a0
mov ecx, dword [ebp - 0x230]
add esp, 0xc
lea edi, [ebp - 0x18]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x100240db
push dword [ebp - 0x22c]
call fcn.1004dd0c
mov eax, dword [ebp - 0x228]
mov esi, dword [eax]
add esi, dword [ebp - 0x230]
pop ecx
add esi, ebx
jmp 0x1002400e