Function at 0x4d7050
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x1a4
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x1c], esi
mov al, byte [esi + 0x58]
cmp al, 4
jne 0x4d70a0
lea eax, [esp + 0x24]
push str.TanakaFilesEditListEntranceEntPrevPic_fire.lst
push eax
call fcn.00404300
push 1
lea ecx, [esp + 0x30]
push 0x598194
push ecx
call fcn.00401040
add esp, 0x14
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4d7169
push str.TanakaFilesEditListEntranceEntPrevPic_fire.lst
jmp 0x4d7140
cmp al, 6
jne 0x4d70da
lea edx, [esp + 0x24]
push str.TanakaFilesEditListEntranceEntPrevPic_mov.lst
push edx
call fcn.00404300
push 1
lea eax, [esp + 0x30]
push 0x598194
push eax
call fcn.00401040
add esp, 0x14
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4d7169
push str.TanakaFilesEditListEntranceEntPrevPic_mov.lst
jmp 0x4d7140
cmp al, 8
jne 0x4d7110
lea ecx, [esp + 0x24]
push str.TanakaFilesEditListEntranceEntPrevPic_move.lst
push ecx
call fcn.00404300
push 1
lea edx, [esp + 0x30]
push 0x598194
push edx
call fcn.00401040
add esp, 0x14
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4d7169
push str.TanakaFilesEditListEntranceEntPrevPic_move.lst
jmp 0x4d7140
lea eax, [esp + 0x24]
push str.TanakaFilesEditListEntranceEntPrevPic3.lst
push eax
call fcn.00404300
push 1
lea ecx, [esp + 0x30]
push 0x598194
push ecx
call fcn.00401040
add esp, 0x14
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4d7169
push str.TanakaFilesEditListEntranceEntPrevPic3.lst
push str.Load_Failed___s
push 0x64a78c
call fcn.005753d0
add esp, 0xc
mov ecx, 0x64a678
call fcn.00405d90
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x1a4
ret
push 0x400
call fcn.005756f6
push 0x40
mov ebx, eax
call fcn.005756f6
mov ebp, eax
lea edx, [esp + 0x2c]
add esp, 8
mov dword [esp + 0x20], ebp
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], edx
mov ecx, 0x100
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x14]
push eax
push 0x400
push ebx
call fcn.004010b0
add esp, 0xc
test eax, eax
jne 0x4d71ce
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004010d0
add esp, 4
test eax, eax
jne 0x4d7280
jmp 0x4d723c
mov ecx, 0x10
xor eax, eax
mov edi, ebp
mov edx, ebp
xor esi, esi
sub edx, ebx
rep stosd dword es:[edi], eax
mov eax, ebx
mov cl, byte [eax]
test cl, cl
je 0x4d71f8
cmp cl, 0xa
je 0x4d71f8
mov byte [edx + eax], cl
inc esi
inc eax
cmp esi, 0x40
jge 0x4d725a
jmp 0x4d71e1
lea edi, [esi + 1]
push edi
call fcn.005756f6
mov edx, eax
mov eax, dword [esp + 0x1c]
mov ecx, edi
mov edi, edx
mov ebp, ecx
mov dword [eax], edx
xor eax, eax
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebp
mov ebp, dword [esp + 0x20]
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, esi
mov edi, edx
mov edx, ecx
mov esi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
inc eax
add edx, 4
cmp eax, 0x64
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], edx
jge 0x4d7280
jmp 0x4d7195
push ebx
call fcn.005756eb
push ebp
call fcn.005756eb
mov eax, dword [esp + 0x1c]
push eax
call fcn.004010e0
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a4
ret
push ebx
call fcn.005756eb
push ebp
call fcn.005756eb
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004010e0
movsx eax, byte [esi + 0x58]
add eax, 0xfffffffe
add esp, 0xc
xor bl, bl
cmp eax, 0xf
ja case.0x4d72ab.5
jmp dword [eax*4 + 0x4d756c]
mov al, byte [esi + 0x2a103]
test al, al
setne bl
jmp case.0x4d72ab.5
mov al, byte [esi + 0x2a105]
test al, al
jne 0x4d72d3
mov bl, 2
jmp case.0x4d72ab.5
cmp byte [esi], 1
jne 0x4d72ed
mov al, byte [esi + 0x2a106]
test al, al
jne 0x4d72e9
mov bl, 2
jmp case.0x4d72ab.5
cmp al, 1
jne 0x4d72f4
mov bl, 3
jmp case.0x4d72ab.5
cmp al, 2
jne 0x4d72ff
mov bl, 4
jmp case.0x4d72ab.5
cmp al, 3
jne 0x4d730a
mov bl, 5
jmp case.0x4d72ab.5
cmp al, 4
jne case.0x4d72ab.5
mov bl, 6
jmp case.0x4d72ab.5
mov bl, byte [esi + 0x28]
mov al, byte [esi]
movsx edx, bl
movsx ecx, al
lea ecx, [ecx + edx*8]
test ecx, ecx
je 0x4d73f7
cmp ecx, 0xd
jge 0x4d73f7
shl bl, 3
add bl, al
dec bl
jmp case.0x4d72ab.5
mov dl, byte [esi + 0x28]
mov bl, byte [esi]
shl dl, 3
add dl, bl
mov ecx, esi
push edx
call fcn.004c77e0
test al, al
jne 0x4d7386
mov bl, byte [esp + 0x10]
dec bl
jmp case.0x4d72ab.5
mov dl, byte [esi + 0x28]
mov bl, byte [esi]
shl dl, 3
add dl, bl
mov ecx, esi
push edx
call fcn.004c77e0
test al, al
jne 0x4d7386
mov bl, byte [esp + 0x10]
dec bl
jmp case.0x4d72ab.5
mov bl, byte [esi + 0x28]
mov al, byte [esi]
movsx ecx, bl
movsx edx, al
lea edi, [edx + ecx*8]
test edi, edi
jl 0x4d737b
mov ecx, dword [esp + 0x10]
dec ecx
cmp edi, ecx
jge 0x4d737b
shl bl, 3
add bl, al
jmp case.0x4d72ab.5
mov al, byte [esi + 0x2a0db]
test al, al
jne 0x4d73bc
mov bl, 7
jmp case.0x4d72ab.5
cmp byte [esi], 1
jne 0x4d742e
mov al, byte [esi + 0x2a13d]
test al, al
jne 0x4d73d2
mov bl, 8
jmp case.0x4d72ab.5
cmp al, 1
jne 0x4d73dd
mov bl, 9
jmp case.0x4d72ab.5
cmp al, 2
jne 0x4d73e8
mov bl, 0xa
jmp case.0x4d72ab.5
cmp al, 3
jne 0x4d73f3
mov bl, 0xb
jmp case.0x4d72ab.5
cmp al, 4
jne 0x4d73fe
mov bl, 0xc
jmp case.0x4d72ab.5
cmp al, 5
jne 0x4d7409
mov bl, 0xd
jmp case.0x4d72ab.5
cmp al, 6
jne 0x4d7414
mov bl, 0xe
jmp case.0x4d72ab.5
cmp al, 7
jne 0x4d741f
mov bl, 0xf
jmp case.0x4d72ab.5
cmp al, 8
jne case.0x4d72ab.5
mov bl, 0x10
jmp case.0x4d72ab.5
mov bl, 0x11
jmp case.0x4d72ab.5
mov cl, byte [esi + 0x2a0e7]
test cl, cl
setne bl
add ebx, 0x12
jmp case.0x4d72ab.5
mov al, byte [esi + 0x2a0eb]
test al, al
jne 0x4d7459
mov bl, 0x14
jmp case.0x4d72ab.5
mov al, byte [esi]
cmp al, 1
jne 0x4d7466
mov bl, 0x15
jmp case.0x4d72ab.5
cmp al, 2
jne 0x4d7471
mov bl, 0x16
jmp case.0x4d72ab.5
cmp al, 3
setne bl
add ebx, 0x17
jmp case.0x4d72ab.5
mov al, byte [esi + 0x2a0f3]
test al, al
jne 0x4d748c
mov bl, 0x19
jmp case.0x4d72ab.5
cmp byte [esi], 1
jne 0x4d74a7
mov al, byte [esi + 0x2a13d]
test al, al
jne 0x4d749f
mov bl, 0x1a
jmp case.0x4d72ab.5
cmp al, 1
jne case.0x4d72ab.5
mov bl, 0x1b
jmp case.0x4d72ab.5
mov bl, 0x1c
jmp case.0x4d72ab.5
mov al, byte [esi + 0x2a0f8]
test al, al
jne 0x4d74b9
mov bl, 0x1d
jmp case.0x4d72ab.5
cmp al, 1
jne 0x4d74c1
mov bl, 0x1e
jmp case.0x4d72ab.5
cmp al, 2
jne 0x4d74c9
mov bl, 0x1f
jmp case.0x4d72ab.5
cmp al, 3
jne case.0x4d72ab.5
mov bl, 0x20
jmp case.0x4d72ab.5
mov cl, byte [esi + 0x2a0f9]
test cl, cl
setne bl
add ebx, 0x21
jmp case.0x4d72ab.5
mov bl, byte [esi + 0x2a0fd]
neg bl
sbb bl, bl
and bl, 2
add bl, 0x23
jmp case.0x4d72ab.5
mov al, byte [esi + 0x2a0ff]
test al, al
jne 0x4d7501
mov bl, 0x26
jmp case.0x4d72ab.5
cmp byte [esi], 1
setne bl
add ebx, 0x27
mov edx, dword [esi + 0x2d08c]
mov ecx, 0x655f38
push edx
call fcn.00410520
movsx eax, bl
push 0
mov ecx, dword [esp + eax*4 + 0x28]
push ecx
mov ecx, 0x655f38
call fcn.0040fee0
mov edi, dword [esp + 0x10]
mov dword [esi + 0x2d08c], eax
test edi, edi
jle 0x4d7552
lea esi, [esp + 0x24]
mov edx, dword [esi]
push edx
call fcn.005756eb
add esp, 4
add esi, 4
dec edi
jne 0x4d7541
push 0x661428
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x1a4
ret