Function at 0x1003946c
Capabilities:
Get memory capacity
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x84
mov ecx, dword [esp + 0x94]
mov dword [esp + 0x10], ebx
add ecx, 0xfff
shr ecx, 0xc
mov dword [esp + 0x70], ecx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x80], eax
mov dword [esp + 0x40], 0
mov dword [esp + 0x48], 0
cmp dword [esp + 0x70], 0
jne 0x100394b9
call fcn.1003b630
lea eax, [esp + 0x80]
call fcn.10039a54
xor al, 1
je 0x10039854
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x50]
rep stosd dword es:[edi], eax
lea edx, [esp + 0x50]
push edx
call sub.KERNEL32.DLL_GlobalMemoryStatus
mov eax, dword [esp + 0x68]
mov edx, 0xcccccccd
mul edx
shr edx, 4
cmp dword [esp + 0x6c], edx
jb 0x100396b0
mov ecx, dword [esp + 0x80]
cmp dword [ecx + 0xa4], 0
jne 0x10039535
xor edi, edi
mov dword [esp + 0x24], edi
mov ebx, dword [ecx + 0xe4]
mov dword [esp + 0x20], ebx
fild qword [esp + 0x20]
fcomp dword [ecx + 0xdc]
fnstsw ax
sahf
jae 0x100396b0
jp 0x100396b0
lea eax, [esp + 0x80]
call fcn.10039ae0
xor al, 1
je 0x10039812
mov esi, dword [esp + 0x80]
mov dword [esp + 0x4c], esi
push 0
mov eax, dword [esp + 0x50]
call fcn.1003a910
mov ecx, dword [esp + 0x80]
mov ebp, dword [esp + 0x80]
lea eax, [ecx + 0xa8]
call fcn.1003d080
xor ebx, ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
cmp dword [esp + 0x30], ebx
je 0x10039812
mov edx, dword [esp + 0x34]
mov edi, dword [edx + ebx*4]
mov ecx, dword [edi + 0x40]
sub dword [ebp + 0xe8], ecx
mov edx, dword [edi]
test edx, edx
je 0x100395c3
cmp dword [edi + 0x40], 0
je 0x100395bc
push 0x8000
push 0
push edx
call sub.KERNEL32.DLL_VirtualFree
mov dword [edi + 0x40], 0
xor ecx, ecx
mov dword [edi], ecx
mov dword [edi + 4], ecx
mov edx, dword [edi + 0x48]
test edx, edx
je 0x100395d9
mov dword [esp], edx
call fcn.10063694
mov dword [edi + 0x48], 0
mov ecx, dword [edi + 0x54]
test ecx, ecx
je 0x100395e8
mov dword [esp], ecx
call fcn.10063694
lea esi, [edi + 8]
cmp dword [esi], 0
je 0x10039600
mov edx, dword [esi]
mov dword [esp], edx
call fcn.10063694
mov dword [esi], 0
cmp byte [edi + 0x4c], 0
je 0x10039620
lea esi, [edi + 0x38]
cmp dword [esi], 0
je 0x10039638
mov edx, dword [esi]
mov dword [esp], edx
call fcn.10063694
mov dword [esi], 0
jmp 0x10039638
lea esi, [edi + 0x10]
cmp dword [esi], 0
je 0x10039638
mov ecx, dword [esi]
mov dword [esp], ecx
call fcn.10063694
mov dword [esi], 0
lea esi, [edi + 0x18]
cmp dword [esi], 0
je 0x10039650
mov ecx, dword [esi]
mov dword [esp], ecx
call fcn.10063694
mov dword [esi], 0
lea esi, [edi + 0x20]
cmp dword [esi], 0
je 0x10039668
mov edx, dword [esi]
mov dword [esp], edx
call fcn.10063694
mov dword [esi], 0
lea esi, [edi + 0x28]
cmp dword [esi], 0
je 0x10039680
mov ecx, dword [esi]
mov dword [esp], ecx
call fcn.10063694
mov dword [esi], 0
lea esi, [edi + 0x30]
cmp dword [esi], 0
je 0x10039698
mov edx, dword [esi]
mov dword [esp], edx
call fcn.10063694
mov dword [esi], 0
mov dword [esp], edi
call fcn.10063694
inc ebx
cmp ebx, dword [esp + 0x30]
jb 0x1003958c
jmp 0x10039812
mov edx, dword [esp + 0x80]
mov dword [esp + 0x44], edx
push 0
mov eax, dword [esp + 0x48]
call fcn.1003a910
mov ecx, dword [esp + 0x80]
mov ebp, dword [esp + 0x80]
lea eax, [ecx + 0xa8]
call fcn.1003d080
xor ebx, ebx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edx
cmp dword [esp + 0x38], ebx
je 0x10039812
mov edx, dword [esp + 0x3c]
mov edi, dword [edx + ebx*4]
mov ecx, dword [edi + 0x40]
sub dword [ebp + 0xe8], ecx
mov edx, dword [edi]
test edx, edx
je 0x1003972a
cmp dword [edi + 0x40], 0
je 0x10039723
push 0x8000
push 0
push edx
call sub.KERNEL32.DLL_VirtualFree
mov dword [edi + 0x40], 0
xor ecx, ecx
mov dword [edi], ecx
mov dword [edi + 4], ecx
mov edx, dword [edi + 0x48]
test edx, edx
je 0x10039740
mov dword [esp], edx
call fcn.10063694
mov dword [edi + 0x48], 0
mov ecx, dword [edi + 0x54]
test ecx, ecx
je 0x1003974f
mov dword [esp], ecx
call fcn.10063694
lea esi, [edi + 8]
cmp dword [esi], 0
je 0x10039767
mov edx, dword [esi]
mov dword [esp], edx
call fcn.10063694
mov dword [esi], 0
cmp byte [edi + 0x4c], 0
je 0x10039787
lea esi, [edi + 0x38]
cmp dword [esi], 0
je 0x1003979f
mov edx, dword [esi]
mov dword [esp], edx
call fcn.10063694
mov dword [esi], 0
jmp 0x1003979f
lea esi, [edi + 0x10]
cmp dword [esi], 0
je 0x1003979f
mov ecx, dword [esi]
mov dword [esp], ecx
call fcn.10063694
mov dword [esi], 0
lea esi, [edi + 0x18]
cmp dword [esi], 0
je 0x100397b7
mov ecx, dword [esi]
mov dword [esp], ecx
call fcn.10063694
mov dword [esi], 0
lea esi, [edi + 0x20]
cmp dword [esi], 0
je 0x100397cf
mov edx, dword [esi]
mov dword [esp], edx
call fcn.10063694
mov dword [esi], 0
lea esi, [edi + 0x28]
cmp dword [esi], 0
je 0x100397e7
mov ecx, dword [esi]
mov dword [esp], ecx
call fcn.10063694
mov dword [esi], 0
lea esi, [edi + 0x30]
cmp dword [esi], 0
je 0x100397ff
mov edx, dword [esi]
mov dword [esp], edx
call fcn.10063694
mov dword [esi], 0
mov dword [esp], edi
call fcn.10063694
inc ebx
cmp ebx, dword [esp + 0x38]
jb 0x100396f3
cmp dword [esp + 0x40], 0
jne 0x10039854
lea eax, [esp + 0x80]
call fcn.10039a54
xor al, 1
je 0x10039854
lea eax, [esp + 0x80]
call fcn.10039ae0
xor al, 1
je 0x10039854
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
add esp, 0x84
xor eax, eax
ret 0x10
mov ebx, dword [esp + 0x40]
mov ecx, dword [ebx + 0x48]
mov edx, dword [esp + 0x48]
mov byte [ecx + edx], 8
mov esi, dword [esp + 0x70]
mov eax, 1
cmp esi, eax
jbe 0x10039896
mov dword [esp + 4], 9
lea ebx, [esi - 1]
mov ecx, dword [esp + 0x40]
mov dword [esp + 8], ebx
mov edx, dword [ecx + 0x48]
mov esi, dword [esp + 0x48]
lea edi, [esi + edx + 1]
mov dword [esp], edi
call fcn.1006374c
push dword [esp + 0x48]
mov eax, dword [esp + 0x44]
call fcn.1003cb58
mov edx, dword [esp + 0x80]
mov ecx, dword [esp + 0x70]
add dword [edx + 0xe4], ecx
mov esi, dword [esp + 0x40]
mov ebx, dword [esp + 0x70]
sub dword [esi + 0x44], ebx
mov ebp, dword [esp + 0x48]
mov eax, dword [esp + 0x40]
shl ebp, 0xc
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x90]
add ebp, dword [eax]
shl ecx, 0xc
mov dword [edx], ecx
cmp dword [esp + 0x8c], 0
je 0x10039a38
mov esi, dword [esp + 0x48]
mov ecx, dword [esp + 0x48]
mov edi, 1
and ecx, 0x1f
shr esi, 5
shl edi, cl
test dword [esp + 0x8c], 0x20
mov ebx, dword [esp + 0x40]
je 0x10039960
mov edx, dword [esp + 0x40]
cmp dword [edx + 0x24], 0
jne 0x1003995a
mov ecx, dword [edx + 0xc]
lea edx, [edx + 0x20]
mov dword [edx + 4], ecx
mov dword [esp + 4], 4
mov ecx, dword [edx + 4]
add ecx, 0x1f
shr ecx, 5
mov dword [esp + 0x74], edx
mov dword [esp], ecx
call fcn.10065bdc
mov edx, dword [esp + 0x74]
test eax, eax
mov dword [edx], eax
jne 0x1003995a
call fcn.1001f3fc
mov dword [esp], eax
call fcn.10019b14
mov ecx, dword [ebx + 0x20]
or dword [ecx + esi*4], edi
test dword [esp + 0x8c], 1
je 0x100399b6
cmp dword [ebx + 0x1c], 0
jne 0x100399b0
lea ecx, [ebx + 0x18]
mov edx, dword [ebx + 0xc]
mov dword [ecx + 4], edx
mov dword [esp + 4], 4
mov edx, dword [ecx + 4]
add edx, 0x1f
shr edx, 5
mov dword [esp + 0x78], ecx
mov dword [esp], edx
call fcn.10065bdc
mov ecx, dword [esp + 0x78]
test eax, eax
mov dword [ecx], eax
jne 0x100399b0
call fcn.1001f3fc
mov dword [esp], eax
call fcn.10019b14
mov edx, dword [ebx + 0x18]
or dword [edx + esi*4], edi
test dword [esp + 0x8c], 2
je 0x100399c9
mov ecx, dword [ebx + 0x28]
or dword [ecx + esi*4], edi
test dword [esp + 0x8c], 8
je 0x100399dc
mov edx, dword [ebx + 0x30]
or dword [edx + esi*4], edi
cmp byte [ebx + 0x4c], 0
je 0x10039a38
test dword [esp + 0x8c], 0x10
je 0x10039a38
cmp dword [ebx + 0x3c], 0
jne 0x10039a32
lea edx, [ebx + 0x38]
mov ecx, dword [ebx + 0xc]
mov dword [edx + 4], ecx
mov dword [esp + 4], 4
mov ecx, dword [edx + 4]
add ecx, 0x1f
shr ecx, 5
mov dword [esp + 0x7c], edx
mov dword [esp], ecx
call fcn.10065bdc
mov edx, dword [esp + 0x7c]
test eax, eax
mov dword [edx], eax
jne 0x10039a32
call fcn.1001f3fc
mov dword [esp], eax
call fcn.10019b14
mov ecx, dword [ebx + 0x38]
or dword [ecx + esi*4], edi
mov eax, ebp
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
add esp, 0x84
ret 0x10