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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b621c
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x4ff1a0]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push esi
push edi
mov eax, dword [0x4ff1a0]
xor eax, esp
push eax
lea eax, [esp + 0x120]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, edx
xor ebx, ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], ecx
cmp dword [esi + 0x10], ebx
je 0x4213f8
cmp dword [esi + 0x14], 8
jb 0x421222
mov eax, dword [esi]
jmp 0x421224
mov eax, esi
push ebx
push 0x80
push 3
push ebx
push ebx
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4213ff
push 1
push 2
lea ecx, [esp + 0x34]
call fcn.00413cc0
mov dword [esp + 0x128], ebx
push esi
push ecx
push str._strFileName:
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
lea edx, [esp + 0x44]
push str.CreateFileW_FAILED._GetLastError:
push edx
call fcn.00416b90
add esp, 0xc
push eax
call fcn.004135f0
add esp, 4
push eax
call fcn.00416b90
add esp, 0xc
push eax
call fcn.00416df0
add esp, 8
push 0x18
mov esi, 0xf
push str.CFileUtility::GetFileBuf
lea ecx, [esp + 0xcc]
mov dword [esp + 0xe0], esi
mov dword [esp + 0xdc], ebx
mov byte [esp + 0xcc], bl
call fcn.0040ebe0
mov byte [esp + 0x128], 1
push esi
push str.FileUtility.cpp
lea ecx, [esp + 0xe8]
mov dword [esp + 0xfc], esi
mov dword [esp + 0xf8], ebx
mov byte [esp + 0xe8], bl
call fcn.0040ebe0
mov byte [esp + 0x128], 2
lea eax, [esp + 0xfc]
push eax
lea ecx, [esp + 0x30]
call fcn.00413de0
mov byte [esp + 0x128], 3
push eax
lea ecx, [esp + 0xc8]
push ecx
push 0x144
lea edx, [esp + 0xec]
push edx
push ebx
call fcn.004144e0
mov ecx, eax
call fcn.0042e360
mov byte [esp + 0x128], 2
cmp dword [esp + 0x110], 8
jb 0x421358
mov eax, dword [esp + 0xfc]
push eax
call fcn.00490458
add esp, 4
xor ecx, ecx
mov dword [esp + 0x110], 7
mov dword [esp + 0x10c], ebx
mov word [esp + 0xfc], cx
mov byte [esp + 0x128], 1
mov edi, 0x10
cmp dword [esp + 0xf4], edi
jb 0x42139a
mov edx, dword [esp + 0xe0]
push edx
call fcn.00490458
add esp, 4
mov dword [esp + 0xf4], esi
mov dword [esp + 0xf0], ebx
mov byte [esp + 0xe0], bl
mov byte [esp + 0x128], bl
cmp dword [esp + 0xd8], edi
jb 0x4213cf
mov eax, dword [esp + 0xc4]
push eax
call fcn.00490458
add esp, 4
mov dword [esp + 0xd8], esi
mov dword [esp + 0xd4], ebx
mov byte [esp + 0xc4], bl
mov dword [esp + 0x128], 0xffffffff
lea ecx, [esp + 0x2c]
call fcn.00412cc0
xor al, al
jmp 0x421887
lea ecx, [esp + 0x1c]
push ecx
push edi
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x24], eax
cmp dword [esp + 0x1c], ebx
je 0x4215e0
push 1
push 2
lea ecx, [esp + 0x34]
call fcn.00413cc0
mov dword [esp + 0x128], 4
push esi
push ecx
push str._strFileName:
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
lea edx, [esp + 0x44]
push str.GetFileSize_FAILED._dwHighSize___0x0._GetLastError:
push edx
call fcn.00416b90
add esp, 0xc
push eax
call fcn.004135f0
add esp, 4
push eax
call fcn.00416b90
add esp, 0xc
push eax
call fcn.00416df0
add esp, 8
push 0x18
mov esi, 0xf
push str.CFileUtility::GetFileBuf
lea ecx, [esp + 0xe8]
mov dword [esp + 0xfc], esi
mov dword [esp + 0xf8], ebx
mov byte [esp + 0xe8], bl
call fcn.0040ebe0
mov byte [esp + 0x128], 5
push esi
push str.FileUtility.cpp
lea ecx, [esp + 0xcc]
mov dword [esp + 0xe0], esi
mov dword [esp + 0xdc], ebx
mov byte [esp + 0xcc], bl
call fcn.0040ebe0
mov byte [esp + 0x128], 6
lea eax, [esp + 0xfc]
push eax
lea ecx, [esp + 0x30]
call fcn.00413de0
mov byte [esp + 0x128], 7
push eax
lea ecx, [esp + 0xe4]
push ecx
push 0x14c
lea edx, [esp + 0xd0]
push edx
push ebx
call fcn.004144e0
mov ecx, eax
call fcn.0042e360
mov byte [esp + 0x128], 6
cmp dword [esp + 0x110], 8
jb 0x421534
mov eax, dword [esp + 0xfc]
push eax
call fcn.00490458
add esp, 4
xor ecx, ecx
mov dword [esp + 0x110], 7
mov dword [esp + 0x10c], ebx
mov word [esp + 0xfc], cx
mov byte [esp + 0x128], 5
cmp dword [esp + 0xd8], 0x10
jb 0x421572
mov edx, dword [esp + 0xc4]
push edx
call fcn.00490458
add esp, 4
mov dword [esp + 0xd8], esi
mov dword [esp + 0xd4], ebx
mov byte [esp + 0xc4], bl
mov byte [esp + 0x128], 4
cmp dword [esp + 0xf4], 0x10
jb 0x4215a9
mov eax, dword [esp + 0xe0]
push eax
call fcn.00490458
add esp, 4
mov dword [esp + 0xf4], esi
mov dword [esp + 0xf0], ebx
mov byte [esp + 0xe0], bl
mov dword [esp + 0x128], 0xffffffff
lea ecx, [esp + 0x2c]
call fcn.00412cc0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x421887
cmp eax, ebx
jne 0x42170f
push 1
push 2
lea ecx, [esp + 0x34]
call fcn.00413cc0
mov dword [esp + 0x128], 8
push esi
push ecx
push str._strFileName:
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
lea ecx, [esp + 0x44]
push str.GetFileSize_FAILED._dwLowSize__0._GetLastError:
push ecx
call fcn.00416b90
add esp, 0xc
push eax
call fcn.004135f0
add esp, 4
push eax
call fcn.00416b90
add esp, 0xc
push eax
call fcn.00416df0
add esp, 8
push str.CFileUtility::GetFileBuf
lea ecx, [esp + 0xc8]
call fcn.0040ece0
mov byte [esp + 0x128], 9
push str.FileUtility.cpp
lea ecx, [esp + 0x100]
call fcn.0040ece0
mov byte [esp + 0x128], 0xa
lea edx, [esp + 0xe0]
push edx
lea ecx, [esp + 0x30]
call fcn.00413de0
mov byte [esp + 0x128], 0xb
push eax
lea eax, [esp + 0xc8]
push eax
push 0x153
lea ecx, [esp + 0x108]
push ecx
push ebx
call fcn.004144e0
mov ecx, eax
call fcn.0042e360
mov byte [esp + 0x128], 0xa
lea ecx, [esp + 0xe0]
call fcn.0040f320
mov byte [esp + 0x128], 9
lea ecx, [esp + 0xfc]
call fcn.0040f350
mov byte [esp + 0x128], 8
lea ecx, [esp + 0xc4]
call fcn.0040f350
mov dword [esp + 0x128], 0xffffffff
lea ecx, [esp + 0x2c]
call fcn.00412cc0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x18]
mov dword [edx], ebx
mov al, 1
jmp 0x421887
mov ecx, dword [ebp + 0xc]
cmp eax, ecx
jbe 0x42172e
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
xor al, al
jmp 0x421887
cmp ecx, ebx
jne 0x421737
mov dword [ebp + 0xc], eax
mov ecx, eax
mov eax, dword [esp + 0x28]
push ebx
lea edx, [esp + 0x24]
push edx
push ecx
push eax
push edi
mov byte [esp + 0x2b], 1
mov dword [esp + 0x34], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x421870
push 1
push 2
lea ecx, [esp + 0x34]
call fcn.00413cc0
mov dword [esp + 0x128], 0xc
push esi
push ecx
push str._strFileName:
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
lea ecx, [esp + 0x44]
push str.ReadFile_FAILED._GetLastError:
push ecx
call fcn.00416b90
add esp, 0xc
push eax
call fcn.004135f0
add esp, 4
push eax
call fcn.00416b90
add esp, 0xc
push eax
call fcn.00416df0
add esp, 8
push str.CFileUtility::GetFileBuf
lea ecx, [esp + 0xc8]
call fcn.0040ece0
mov byte [esp + 0x128], 0xd
push str.FileUtility.cpp
lea ecx, [esp + 0x100]
call fcn.0040ece0
mov byte [esp + 0x128], 0xe
lea edx, [esp + 0xe0]
push edx
lea ecx, [esp + 0x30]
call fcn.00413de0
mov byte [esp + 0x128], 0xf
push eax
lea eax, [esp + 0xc8]
push eax
push 0x16b
lea ecx, [esp + 0x108]
push ecx
push ebx
call fcn.004144e0
mov ecx, eax
call fcn.0042e360
mov byte [esp + 0x128], 0xe
lea ecx, [esp + 0xe0]
call fcn.0040f320
mov byte [esp + 0x128], 0xd
lea ecx, [esp + 0xfc]
call fcn.0040f350
mov byte [esp + 0x128], 0xc
lea ecx, [esp + 0xc4]
call fcn.0040f350
mov dword [esp + 0x128], 0xffffffff
lea ecx, [esp + 0x2c]
call fcn.00412cc0
jmp 0x421874
mov bl, byte [esp + 0x17]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
push edi
mov dword [eax], edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [esp + 0x120]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.004911d1
mov esp, ebp
pop ebp
ret