Function at 0x4036e0
Capabilities:
Check if file exists
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415cd0
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x41e014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00404e70
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 0
lea eax, [ebp - 0x22c]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00402db0
add esp, 0x14
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebx, dword [ebp - 0x22c]
test eax, eax
lea eax, [ebp - 0x218]
push eax
jne 0x403796
push str.Output:_s_Not_exist__n
call fcn.00403ae0
add esp, 8
mov dword [ebp - 0x230], 1
jmp 0x403a06
push str.Output:_s_n
call fcn.00403ae0
mov ecx, dword [ebp - 0x228]
mov eax, 0x2aaaaaab
sub ecx, ebx
add esp, 8
imul ecx
sar edx, 2
mov esi, edx
shr esi, 0x1f
add esi, edx
mov dword [ebp - 0x220], esi
jne 0x4037e0
push str.Not_find_file__n
call fcn.00403ae0
add esp, 4
mov dword [ebp - 0x230], 1
jmp 0x403a06
push esi
push str.Pack_File_Count:_d_n
call fcn.00403ae0
add esp, 8
xor edi, edi
test esi, esi
je 0x40383d
mov esi, dword [ebp - 0x22c]
xor ebx, ebx
nop dword [eax]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x40380a
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40387a
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x40381f
mov eax, dword [esi]
push eax
push edi
push str.Pack_d:_s_n
call fcn.00403ae0
inc edi
add esp, 0xc
add ebx, 0x18
add esi, 0x18
cmp edi, dword [ebp - 0x220]
jb 0x403800
push str.CnCryptePackage
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004032d0
add esp, 0x10
test eax, eax
jne 0x4038ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [ebp - 0x230], ebx
test ebx, ebx
je 0x4038b8
mov eax, str.Cannot_write_compressed_data_to_the_package__n
jmp 0x4039f7
mov eax, dword [ebp - 0x22c]
add eax, ebx
cmp dword [eax + 0x14], 8
jb 0x40388a
mov eax, dword [eax]
push eax
push edi
push str.Pack_d:_s_Not_exist__n
call fcn.00403ae0
mov ebx, dword [ebp - 0x22c]
add esp, 0xc
mov dword [ebp - 0x230], 1
jmp 0x403a06
mov dword [ebp - 0x230], 0
push str.CheckSumMappedFile
push str.imagehlp.dll
mov dword [ebp - 0x234], 0
xor esi, esi
mov dword [ebp - 0x220], 0
xor edi, edi
mov dword [ebp - 0x238], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x21c], eax
test eax, eax
je 0x4039f2
push edi
push edi
push 3
push edi
push 1
push 0xc0000000
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4039ac
push edi
push edi
push edi
push 4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
test edi, edi
je 0x4039ac
push esi
push esi
push esi
push 6
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x4039ac
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov eax, 0x5a4d
mov dword [ebp - 0x220], ecx
cmp word [esi], ax
jne 0x40399d
mov eax, dword [esi + 0x3c]
add eax, esi
mov dword [ebp - 0x23c], eax
je 0x4039ac
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x238]
push eax
push ecx
push esi
call dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x234]
cmp dword [ebp - 0x238], ecx
je 0x4039ac
mov eax, dword [ebp - 0x23c]
mov dword [eax + 0x58], ecx
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [ebp - 0x21c], eax
jmp 0x4039bd
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [ebp - 0x21c], eax
test esi, esi
je 0x4039d1
push dword [ebp - 0x220]
push esi
call dword [sym.imp.KERNEL32.dll_FlushViewOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x4039de
push edi
call esi
cmp ebx, 0xffffffff
je 0x4039e6
push ebx
call esi
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, str.Successed__n
push eax
call fcn.00403ae0
mov ebx, dword [ebp - 0x22c]
add esp, 4
test ebx, ebx
je 0x403ab6
mov edi, dword [ebp - 0x228]
mov esi, ebx
cmp esi, edi
je 0x403a73
nop word [eax + eax]
mov ecx, dword [esi + 0x14]
cmp ecx, 8
jb 0x403a59
mov eax, dword [esi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x403a4f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403ad8
mov eax, edx
push ecx
push eax
call fcn.00403e68
add esp, 8
xor ecx, ecx
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], cx
add esi, 0x18
cmp esi, edi
jne 0x403a20
mov ecx, dword [ebp - 0x224]
mov eax, 0x2aaaaaab
sub ecx, ebx
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, ebx
shl ecx, 3
cmp ecx, 0x1000
jb 0x403aac
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403ad8
push ecx
push ebx
call fcn.00403e68
add esp, 8
mov eax, dword [ebp - 0x230]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00403bfd
mov esp, ebp
pop ebp
ret
call fcn.00408e87
int3