Function at 0x100d9c50
Capabilities:
Get memory capacity

Disassembly:
push 0xffffffffffffffff
push 0x1019a2b6
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10279264]
xor eax, esp
push eax
lea eax, [esp + 0xf0]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x104]
mov ebp, dword [esp + 0x100]
mov eax, dword [ebp + 0x24]
mov edi, dword [ebp + 0x20]
test eax, eax
ja 0x100d9c9d
cmp edi, 0x200000
jbe 0x100d9ca1
mov cl, 1
jmp 0x100d9ca3
xor cl, cl
mov byte [ebp + 0x191], cl
mov edx, str.true
test cl, cl
jne 0x100d9cb7
mov edx, str.false
cmp dword [ebp + 0x18], 0x10
lea esi, [ebp + 4]
jb 0x100d9cc4
mov ecx, dword [esi]
jmp 0x100d9cc6
mov ecx, esi
push eax
push edi
push eax
push edi
push edx
push ecx
push str.file__s___m_is_need_pkg_buf__s___m_len_0x_x___u_.
lea edi, [esp + 0x50]
mov dword [esp + 0x50], str.FlashToolLib_source_common_handle_src_flashtool_handle_internal.cpp
mov dword [esp + 0x54], 0x417
mov byte [esp + 0x58], 0
mov dword [esp + 0x5c], str._DEBUG:
mov dword [esp + 0x60], str.FileLoadUnit::SCILoad
call fcn.10017c90
add esp, 0x1c
cmp byte [ebp + 0x191], 0
je 0x100d9d53
cmp dword [ebp + 0x18], 0x10
jb 0x100d9d13
mov esi, dword [esi]
push esi
push str.file__s___need_reloadall
lea edi, [esp + 0x3c]
mov dword [esp + 0x3c], str.FlashToolLib_source_common_handle_src_flashtool_handle_internal.cpp
mov dword [esp + 0x40], 0x41f
mov byte [esp + 0x44], 0
mov dword [esp + 0x48], str._DEBUG:
mov dword [esp + 0x4c], str.FileLoadUnit::SCILoad
call fcn.10017c90
add esp, 8
mov byte [ebp + 0x44], 0
jmp 0x100da173
mov eax, dword [ebp + 0x20]
push eax
call fcn.1016bba0
add esp, 4
mov dword [esp + 0x48], eax
test eax, eax
jne 0x100d9ec2
push eax
lea ecx, [esp + 0x50]
push 0x20
push ecx
call fcn.10173270
add esp, 0xc
lea edx, [esp + 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x64]
mov esi, dword [esp + 0x58]
mov ebx, dword [esp + 0x68]
shr eax, 0xa
push eax
shr ecx, 0xa
push str.The_total_physical_memory_size__lu_KB.
lea edi, [esp + 0x1c]
shr esi, 0xa
shr ebx, 0xa
mov dword [esp + 0x44], ecx
mov dword [esp + 0x1c], str.FlashToolLib_source_common_handle_src_flashtool_handle_internal.cpp
mov dword [esp + 0x20], 0x427
mov byte [esp + 0x24], 0
mov dword [esp + 0x28], str._DEBUG:
mov dword [esp + 0x2c], str.FileLoadUnit::SCILoad
call fcn.10017c90
push esi
push str.The_available_physical_memory_size__lu_KB.
lea edi, [esp + 0x24]
mov dword [esp + 0x24], str.FlashToolLib_source_common_handle_src_flashtool_handle_internal.cpp
mov dword [esp + 0x28], 0x428
mov byte [esp + 0x2c], 0
mov dword [esp + 0x30], str._DEBUG:
mov dword [esp + 0x34], str.FileLoadUnit::SCILoad
call fcn.10017c90
mov eax, dword [esp + 0x4c]
push eax
mov esi, str.FileLoadUnit::SCILoad
push str.The_total_virtual_memory_size__lu_KB.
lea edi, [esp + 0x2c]
mov dword [esp + 0x2c], str.FlashToolLib_source_common_handle_src_flashtool_handle_internal.cpp
mov dword [esp + 0x30], 0x429
mov byte [esp + 0x34], 0
mov dword [esp + 0x38], str._DEBUG:
mov dword [esp + 0x3c], esi
call fcn.10017c90
push ebx
push str.The_available_virtual_memory_size__lu_KB.
lea edi, [esp + 0x34]
mov dword [esp + 0x34], str.FlashToolLib_source_common_handle_src_flashtool_handle_internal.cpp
mov dword [esp + 0x38], 0x42a
mov byte [esp + 0x3c], 0
mov dword [esp + 0x40], str._DEBUG:
mov dword [esp + 0x44], esi
call fcn.10017c90
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x24]
shrd ecx, edx, 0xa
shr edx, 0xa
push edx
push ecx
push str.malloc_memory__lu_KB_failed_
lea edi, [esp + 0x40]
mov dword [esp + 0x40], str.FlashToolLib_source_common_handle_src_flashtool_handle_internal.cpp
mov dword [esp + 0x44], 0x42b
mov byte [esp + 0x48], 0xff
mov dword [esp + 0x4c], str._ERROR:
mov dword [esp + 0x50], esi
call fcn.10017c90
add esp, 0x2c
mov eax, 0x3f4
jmp 0x100da175
mov ecx, dword [ebp + 0x20]
push ecx
push 0xff
push eax
call fcn.10173270
add esp, 0xc
lea ecx, [esp + 0x6c]
call fcn.1013bd20
push ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0xfc], 0
call fcn.10004550
mov byte [esp + 0xf8], 1
mov eax, dword [ebp + 0x19c]
mov esi, dword [ebp + 0x24]
mov edx, dword [ebp + 0x20]
push esi
xor ecx, ecx
add eax, dword [ebp + 0x1b0]
push edx
adc ecx, dword [ebp + 0x1b4]
push ecx
push eax
push esi
push edx
lea edx, [esp + 0x2c]
push edx
lea esi, [esp + 0x88]
call fcn.1013bf70
mov byte [esp + 0xf8], 0
cmp dword [esp + 0x2c], 0x10
mov byte [esp + 0x33], al
jb 0x100d9f4b
mov eax, dword [esp + 0x18]
push eax
call fcn.1016d679
add esp, 4
cmp byte [esp + 0x33], 0
je 0x100da02a
cmp byte [esp + 0xe8], 0
je 0x100d9fda
lea eax, [esp + 0x34]
lea ecx, [esp + 0x6c]
call fcn.1013bf50
mov eax, dword [ebp + 0x16c]
mov esi, dword [ebp + 0x168]
mov edi, dword [ebp + 0x164]
mov ecx, dword [ebp + 0x160]
mov edx, dword [ebp + 0x15c]
push eax
mov eax, dword [ebp + 0x158]
mov ebx, dword [ebp + 0x140]
push esi
push edi
push ecx
push edx
mov edx, dword [ebp + 0x144]
push eax
mov eax, dword [ebp + 0x154]
push eax
mov eax, dword [ebp + 0x150]
push eax
mov eax, dword [ebp + 0x14c]
push eax
mov eax, dword [ebp + 0x148]
push eax
mov eax, dword [esp + 0x5c]
mov ecx, ebx
call fcn.1012a360
lea eax, [esp + 0x34]
call fcn.101008e0
mov ebx, dword [esp + 0x104]
lea esi, [esp + 0x6c]
call fcn.1013c180
mov dword [esp + 0x14], str.FlashToolLib_source_common_handle_src_flashtool_handle_internal.cpp
mov dword [esp + 0x24], str.FileLoadUnit::SCILoad
lea edi, [esp + 0x14]
test eax, eax
jne 0x100da091
mov ecx, dword [ebp + 0x24]
mov edx, dword [ebp + 0x20]
push ecx
push edx
push ebx
push str.sciRomIoMgr.Start___failed__path__s___packageLength__d_.S_DL_SCAT_INCORRECT_FORMAT
mov dword [esp + 0x28], 0x440
mov byte [esp + 0x2c], 0xff
mov dword [esp + 0x30], str._ERROR:
call fcn.10017c90
add esp, 0x10
mov edx, dword [ebp + 0x24]
mov eax, dword [ebp + 0x20]
push edx
push eax
push ebx
push str.fail_to_read_file_from___s__________len__d_
lea edi, [esp + 0x24]
mov dword [esp + 0x24], str.FlashToolLib_source_common_handle_src_flashtool_handle_internal.cpp
mov dword [esp + 0x28], 0x45b
mov byte [esp + 0x2c], 0xff
mov dword [esp + 0x30], str._ERROR:
mov dword [esp + 0x34], str.FileLoadUnit::SCILoad
call fcn.10017c90
mov ecx, dword [esp + 0x58]
push ecx
call fcn.1016dfc5
add esp, 0x14
lea ecx, [esp + 0x6c]
mov dword [esp + 0xf8], 0xffffffff
call fcn.1013bd90
mov eax, 0x1390
jmp 0x100da175
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x20]
push eax
push ecx
push ebx
push str.sciRomIoMgr.Start___succeeds__path__s___packageLength__d_.
mov dword [esp + 0x28], 0x445
mov byte [esp + 0x2c], 0
mov dword [esp + 0x30], str._DEBUG:
call fcn.10017c90
add esp, 0x10
lea edx, [esp + 0x34]
push edx
lea esi, [esp + 0x70]
mov dword [esp + 0x38], 0
call fcn.1013c5a0
mov esi, eax
mov dword [esp + 0x14], str.FlashToolLib_source_common_handle_src_flashtool_handle_internal.cpp
mov dword [esp + 0x24], str.FileLoadUnit::SCILoad
lea edi, [esp + 0x14]
test esi, esi
jge 0x100da11d
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x20]
push eax
push ecx
push esi
push ebx
push str.sciRomIoMgr_GetNextPackage_failed__path__s__nLenRead__d__packageLength__d_.
mov dword [esp + 0x2c], 0x44a
mov byte [esp + 0x30], 0xff
mov dword [esp + 0x34], str._ERROR:
call fcn.10017c90
add esp, 0x14
jmp 0x100da02a
mov edx, dword [ebp + 0x24]
mov eax, dword [ebp + 0x20]
push edx
push eax
push esi
push ebx
push str.sciRomIoMgr_GetNextPackage_succeeds__path__s__nLenRead__d__packageLength__d_.
mov dword [esp + 0x2c], 0x450
mov byte [esp + 0x30], 0
mov dword [esp + 0x34], str._DEBUG:
call fcn.10017c90
mov ecx, dword [esp + 0x48]
add esp, 0x14
push esi
mov esi, dword [esp + 0x4c]
push ecx
push esi
call fcn.10173370
add esp, 0xc
lea ecx, [esp + 0x6c]
mov dword [ebp + 0x1c], esi
mov dword [esp + 0xf8], 0xffffffff
call fcn.1013bd90
xor eax, eax
mov ecx, dword [esp + 0xf0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe8
ret 8