Function at 0x41d338
Capabilities:
Get common file path
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1b88
call fcn.00612c90
mov eax, dword [0x6ffe74]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
mov dword [ebp - 0x1b80], ecx
call fcn.00643470
xor ebx, ebx
pop ecx
cmp eax, 1
jae 0x41d38c
lea eax, [ebp - 0x1b6c]
push eax
push ebx
push ebx
push 0x1a
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x41d3e2
mov eax, str._sFlashGet_v3datFlashGet3db.db
lea esi, [ebp - 0x1b6c]
jmp 0x41d391
mov eax, str._s_v3datFlashGet3db.db
push esi
push eax
lea eax, [ebp - 0xbcc]
push 0x3e8
push eax
call fcn.00402e0a
add esp, 0x10
lea ecx, [ebp - 0xbcc]
call fcn.00405670
test eax, eax
je 0x41d3e2
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocString
lea eax, [ebp - 0xbcc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 0x1b88], edi
cmp edi, 0xffffffff
jne 0x41d3f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006122f0
leave
ret 4
push ebx
push ebx
push ebx
push 2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov esi, eax
mov dword [ebp - 0x1b84], esi
test esi, esi
jne 0x41d41d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41d3e2
push ebx
push ebx
push ebx
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
jne 0x41d438
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
jmp 0x41d415
lea eax, [ebp - 0x1b78]
xor ecx, ecx
push eax
push edi
mov dword [ebp - 0x1b78], ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [ebp - 0x1b78], 0
mov dword [ebp - 0x1b7c], eax
jne 0x41d3e2
mov edi, eax
mov dword [ebp - 0x14], 0x882
xor eax, eax
mov dword [ebp - 0x10], 0x982
mov esi, ebx
mov word [ebp - 0xc], 0xa89
mov byte [ebp - 0xa], al
mov word [ebp - 0x1b74], 0x1282
mov byte [ebp - 0xfb4], al
mov edx, edi
mov byte [ebp - 0x139c], al
mov ecx, esi
mov byte [ebp - 0x1784], al
lea eax, [ebp - 0x14]
push 0xb
push eax
call fcn.00417191
pop ecx
pop ecx
test eax, eax
je 0x41d64b
sub edi, eax
lea ecx, [ebp - 0x1b74]
push 2
push ecx
lea ecx, [eax + 0xb]
lea edx, [edi - 0xb]
add edx, esi
call fcn.00417191
pop ecx
pop ecx
test eax, eax
je 0x41d64b
mov edi, dword [ebp - 0x1b7c]
add edi, ebx
cmp eax, edi
ja 0x41d64b
lea esi, [eax + 2]
movzx eax, byte [esi]
add esi, 2
mov dword [ebp - 0x1b70], eax
cmp esi, edi
ja 0x41d64b
push eax
lea eax, [ebp - 0x7e4]
push esi
push eax
call fcn.00638b30
mov eax, dword [ebp - 0x1b70]
add esp, 0xc
xor ecx, ecx
and eax, 0xfffffffe
push ecx
push ecx
push 0x3e8
mov word [ebp + eax - 0x7e4], cx
lea eax, [ebp - 0x1784]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x7e4]
push eax
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
add esi, dword [ebp - 0x1b70]
movzx eax, byte [esi + 0xf]
add esi, 0x11
mov dword [ebp - 0x1b70], eax
cmp esi, edi
ja 0x41d64b
push eax
lea eax, [ebp - 0x7e4]
push esi
push eax
call fcn.00638b30
mov eax, dword [ebp - 0x1b70]
add esp, 0xc
xor ecx, ecx
and eax, 0xfffffffe
push ecx
push ecx
push 0x3e8
mov word [ebp + eax - 0x7e4], cx
lea eax, [ebp - 0x139c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x7e4]
push eax
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
add esi, dword [ebp - 0x1b70]
movzx eax, byte [esi + 2]
add esi, 4
mov dword [ebp - 0x1b70], eax
cmp esi, edi
ja 0x41d64b
push eax
lea eax, [ebp - 0x7e4]
push esi
push eax
call fcn.00638b30
mov eax, dword [ebp - 0x1b70]
add esp, 0xc
xor ecx, ecx
and eax, 0xfffffffe
push ecx
push ecx
push 0x3e8
mov word [ebp + eax - 0x7e4], cx
lea eax, [ebp - 0xfb4]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x7e4]
push eax
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0xffffffffffffffff
mov ecx, 0x6c5bb9
lea eax, [ebp - 0xfb4]
push ecx
push eax
lea eax, [ebp - 0x139c]
push eax
lea eax, [ebp - 0x1784]
push eax
push ecx
mov ecx, dword [ebp - 0x1b80]
push 0x8a
push 5
call fcn.0043ee6b
mov ecx, dword [ebp - 0x1b7c]
mov edi, ecx
add esi, dword [ebp - 0x1b70]
sub edi, esi
add edi, ebx
lea eax, [ecx + ebx]
cmp esi, eax
ja 0x41d64b
push 0
pop eax
cmp edi, 0xa
jae 0x41d483
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [ebp - 0x1b84]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov edi, dword [ebp - 0x1b88]
push edi
call esi
xor eax, eax
inc eax
jmp 0x41d3e4