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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x403f90
mov eax, dword fs:[0]
push eax
sub esp, 0x188
mov eax, dword [0x406040]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0xdc], ecx
push 0x318
call fcn.004033c9
add esp, 4
mov ebx, eax
mov dword [ebp - 0xd8], ebx
push 0x318
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebx], vtable.CMemScript.0
lea edi, [ebx + 0xc]
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
push pe_nt_image_headers32
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea esi, [ebx + 0x218]
push edi
push str.__s__The_file_were_not_configured_correctly_n
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov dword [ebp - 0xd8], ebx
push str.CustomJewel.txt
push pe_nt_image_headers32
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
add esp, 0xc
push 0
push 0x20
push 3
push 0
push 1
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4020b2
lea eax, [ebx + 0xc]
push eax
mov eax, dword [sym.imp.USER32.dll_wsprintfA]
push str.__s__Could_not_open_file_n
push esi
call eax
add esp, 0xc
push esi
call fcn.00401f60
add esp, 4
jmp 0x4024f1
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebx + 8], eax
mov eax, dword [ebx + 4]
test eax, eax
je 0x4020d5
push eax
call fcn.0040341c
add esp, 4
mov dword [ebx + 4], 0
push dword [ebx + 8]
call fcn.00403421
add esp, 4
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push 0
push ecx
push dword [ebx + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x402128
lea eax, [ebx + 0xc]
push eax
mov eax, dword [sym.imp.USER32.dll_wsprintfA]
push str.__s__Could_not_read_file_n
push esi
call eax
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.00401f60
add esp, 4
jmp 0x4024f1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x10c], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebx + 0x214], eax
mov ecx, 0xf
mov eax, dword [ebp - 0xdc]
add eax, 4
nop dword [eax]
nop word [eax + eax]
mov dword [eax], 0xffffffff
lea eax, [eax + 0xb8]
sub ecx, 1
jne 0x402160
mov dword [ebp - 4], ecx
mov ecx, ebx
call fcn.00402d10
cmp eax, 2
je 0x4024ed
cvttss2si eax, dword [ebx + 0x110]
mov dword [ebp - 0x1c], eax
lea esi, [ebx + 0x114]
test eax, eax
jne 0x40241d
mov ecx, ebx
call fcn.00402d10
mov ecx, esi
mov eax, 0x4047a0
nop dword [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4021d0
test dl, dl
je 0x4021cc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4021d0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4021b0
xor eax, eax
jmp 0x4021d5
sbb eax, eax
or eax, 1
test eax, eax
je 0x402174
push 0xb4
lea eax, [ebp - 0xd0]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
cvttss2si eax, dword [ebx + 0x110]
add esp, 0xc
mov ecx, ebx
mov dword [ebp - 0xd4], eax
call fcn.00402d10
cvttss2si eax, dword [ebx + 0x110]
mov ecx, ebx
mov dword [ebp - 0xd0], eax
call fcn.00402d10
cvttss2si eax, dword [ebx + 0x110]
mov ecx, ebx
mov dword [ebp - 0xcc], eax
call fcn.00402d10
cvttss2si eax, dword [ebx + 0x110]
mov ecx, ebx
mov dword [ebp - 0xc8], eax
call fcn.00402d10
cvttss2si eax, dword [ebx + 0x110]
mov ecx, ebx
mov dword [ebp - 0xc4], eax
call fcn.00402d10
cvttss2si eax, dword [ebx + 0x110]
mov ecx, ebx
mov dword [ebp - 0xc0], eax
call fcn.00402d10
cvttss2si eax, dword [ebx + 0x110]
mov ecx, ebx
mov dword [ebp - 0xbc], eax
call fcn.00402d10
cvttss2si eax, dword [ebx + 0x110]
mov ecx, ebx
mov dword [ebp - 0xb8], eax
call fcn.00402d10
cvttss2si eax, dword [ebx + 0x110]
mov ecx, ebx
mov dword [ebp - 0xb4], eax
call fcn.00402d10
cvttss2si eax, dword [ebx + 0x110]
mov ecx, ebx
mov dword [ebp - 0xb0], eax
call fcn.00402d10
cvttss2si eax, dword [ebx + 0x110]
mov ecx, ebx
mov dword [ebp - 0xac], eax
call fcn.00402d10
cvttss2si eax, dword [ebx + 0x110]
mov ecx, ebx
mov dword [ebp - 0xa8], eax
call fcn.00402d10
cvttss2si eax, dword [ebx + 0x110]
mov ecx, ebx
mov dword [ebp - 0xa4], eax
call fcn.00402d10
cvttss2si eax, dword [ebx + 0x110]
mov ecx, ebx
mov dword [ebp - 0xa0], eax
call fcn.00402d10
cvttss2si eax, dword [ebx + 0x110]
mov ecx, ebx
mov dword [ebp - 0x9c], eax
call fcn.00402d10
cvttss2si eax, dword [ebx + 0x110]
mov ecx, ebx
mov dword [ebp - 0x98], eax
call fcn.00402d10
cvttss2si eax, dword [ebx + 0x110]
mov ecx, ebx
mov dword [ebp - 0x94], eax
call fcn.00402d10
cvttss2si eax, dword [ebx + 0x110]
mov ecx, ebx
mov dword [ebp - 0x90], eax
call fcn.00402d10
cvttss2si eax, dword [ebx + 0x110]
mov ecx, ebx
mov dword [ebp - 0x8c], eax
call fcn.00402d10
cvttss2si eax, dword [ebx + 0x110]
mov ecx, ebx
mov dword [ebp - 0x88], eax
call fcn.00402d10
cvttss2si eax, dword [ebx + 0x110]
mov ecx, ebx
mov dword [ebp - 0x84], eax
call fcn.00402d10
cvttss2si eax, dword [ebx + 0x110]
mov ecx, ebx
mov dword [ebp - 0x80], eax
call fcn.00402d10
push esi
lea eax, [ebp - 0x7c]
push 0x20
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
mov eax, dword [ebp - 0x1c]
lea esi, [ebp - 0xd4]
mov ecx, 0x2e
lea edi, [ebp - 0x194]
rep movsd dword es:[edi], dword [esi]
add esp, 0xc
lea esi, [ebx + 0x114]
cmp dword [ebp - 0x194], 0xe
ja 0x402195
imul eax, dword [ebp - 0xd4], 0xb8
lea esi, [ebp - 0xd4]
mov edi, dword [ebp - 0xdc]
mov ecx, 0x2e
add eax, 4
add edi, eax
mov eax, dword [ebp - 0x1c]
rep movsd dword es:[edi], dword [esi]
jmp 0x40218f
cmp eax, 1
jne 0x402450
mov ecx, ebx
call fcn.00402d10
mov ecx, esi
mov eax, 0x4047a0
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x402487
test dl, dl
je 0x402483
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x402487
add eax, 2
add ecx, 2
test dl, dl
jne 0x402430
xor eax, eax
jmp 0x40248c
cmp eax, 2
jne 0x402174
mov ecx, ebx
call fcn.00402d10
mov ecx, esi
mov eax, 0x4047a0
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x402487
test dl, dl
je 0x402483
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x402487
add eax, 2
add ecx, 2
test dl, dl
jne 0x402467
xor eax, eax
jmp 0x40248c
sbb eax, eax
or eax, 1
test eax, eax
je 0x402174
mov ecx, ebx
call fcn.00402d10
mov ecx, ebx
call fcn.00402d10
mov ecx, ebx
call fcn.00402d10
mov ecx, ebx
call fcn.00402d10
mov ecx, ebx
call fcn.00402d10
mov ecx, ebx
call fcn.00402d10
mov ecx, ebx
call fcn.00402d10
mov eax, dword [ebp - 0x1c]
jmp 0x402195
test ebx, ebx
je 0x4024f9
mov eax, dword [ebx]
mov ecx, ebx
push 1
call dword [eax]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0040315c
mov esp, ebp
pop ebp
ret 4