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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.004ce570
mov eax, dword [0x52382c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov ecx, 0x2800
mov edi, 0x633dc0
rep stosd dword es:[edi], eax
mov ecx, 0x2800
mov edi, 0x53bde8
rep stosd dword es:[edi], eax
mov eax, dword [0x526714]
shl eax, 7
add eax, 0x5257f0
push eax
lea ecx, [ebp - 0x804]
push str.Language_sNPCClientData.txt
xor ebx, ebx
push ecx
mov dword [0x1a38398], ebx
call fcn.004cce8a
lea edx, [ebp - 0x804]
push edx
call fcn.00431a60
add esp, 0x10
push ebx
push ebx
push 3
push ebx
push 1
push connect
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x434e36
mov ecx, dword [0x5256ec]
push ebx
push ebx
push 0x526730
push str.Cannot_Read_NPCClientData.txt_
push ecx
call dword [sym.imp.USER32.dll_MessageBoxExA]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ccd49
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x100c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [ebp - 0x1008], edi
cmp edi, 0xffffffff
jne 0x434e8b
cmp dword [ebp - 0x100c], ebx
jne 0x434eb4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x5256ec]
push ebx
push ebx
push 0x526730
push str.Cannot_GetFileSize_NPCClientData.txt_
push eax
call dword [sym.imp.USER32.dll_MessageBoxExA]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ccd49
mov esp, ebp
pop ebp
ret
cmp edi, ebx
jne 0x434eb4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x5256ec]
push ebx
push ebx
push 0x526730
push str.Cannot_FileSizeLow_NPCClientData.txt_
push ecx
call dword [sym.imp.USER32.dll_MessageBoxExA]
jmp 0x4350db
mov eax, dword [0x6a360c]
cmp eax, ebx
je 0x434eca
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [0x6a360c], ebx
push 0x200000
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [0x6a360c], eax
cmp eax, ebx
jne 0x434f12
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [0x5256ec]
push ebx
push ebx
push 0x526730
push str.Cannot_GlobalAlloc_NPCClientData.txt_
push edx
call dword [sym.imp.USER32.dll_MessageBoxExA]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ccd49
mov esp, ebp
pop ebp
ret
push ebx
push ebx
push ebx
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
test ebx, ebx
jne 0x434f6f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x6a360c]
test eax, eax
je 0x434f42
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [0x6a360c], ebx
mov eax, dword [0x5256ec]
push 0
push 0
push 0x526730
push str.Cannot_CreateFileMapping_NPCClientData.txt_
push eax
call dword [sym.imp.USER32.dll_MessageBoxExA]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ccd49
mov esp, ebp
pop ebp
ret
push edi
push 0
push 0
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0x434fd7
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call edi
push esi
call edi
mov eax, dword [0x6a360c]
test eax, eax
je 0x434fa9
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [0x6a360c], 0
mov ecx, dword [0x5256ec]
push 0
push 0
push 0x526730
push str.Cannot_MapViewOfFile_NPCClientData.txt_
push ecx
call dword [sym.imp.USER32.dll_MessageBoxExA]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ccd49
mov esp, ebp
pop ebp
ret
mov edx, dword [0x6a360c]
push 0x200000
push 0
push edx
call fcn.004cce10
mov eax, dword [ebp - 0x1008]
mov ecx, dword [0x6a360c]
push eax
push edi
push ecx
call fcn.004cd640
add esp, 0x18
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call edi
push esi
call edi
mov ebx, dword [0x6a360c]
push 0x4e5938
push ebx
call fcn.004cef6b
mov esi, eax
add esp, 8
test esi, esi
je 0x4350db
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x435037
sub eax, edx
lea edx, [ebp - 0x1004]
lea ebx, [ebx + eax + 3]
mov eax, esi
sub edx, esi
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x435050
lea edx, [ebp - 0x1004]
push 0x4e59c0
push edx
call fcn.004cef6b
add esp, 8
test eax, eax
je 0x4350c3
push eax
call fcn.004ce55a
push 0x4e59c0
push esi
mov edi, eax
call fcn.004cef6b
add esp, 0xc
test eax, eax
je 0x4350c3
push 0x4e5938
push 0
call fcn.004cef6b
add esp, 8
mov dword [edi*4 + 0x53bde8], eax
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4350a5
sub eax, edx
mov dword [edi*4 + 0x633dc0], eax
cmp dword [0x1a38398], edi
jae 0x4350c3
mov dword [0x1a38398], edi
push 0x4e5938
push ebx
call fcn.004cef6b
mov esi, eax
add esp, 8
test esi, esi
jne 0x435032
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.004ccd49
mov esp, ebp
pop ebp
ret