Function at 0x430998
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 0x4309e5
call fcn.00432b18
lea eax, [esp + 0x80]
call fcn.00430f6c
xor al, 1
je 0x430d80
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 0x430bdc
mov ecx, dword [esp + 0x80]
cmp dword [ecx + 0xa4], 0
jne 0x430a61
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 0x430bdc
jp 0x430bdc
lea eax, [esp + 0x80]
call fcn.00430ff8
xor al, 1
je 0x430d3e
mov esi, dword [esp + 0x80]
mov dword [esp + 0x4c], esi
push 0
mov eax, dword [esp + 0x50]
call fcn.00431e28
mov ecx, dword [esp + 0x80]
mov ebp, dword [esp + 0x80]
lea eax, [ecx + 0xa8]
call fcn.00434414
xor ebx, ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
cmp dword [esp + 0x30], ebx
je 0x430d3e
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 0x430aef
cmp dword [edi + 0x40], 0
je 0x430ae8
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 0x430b05
mov dword [esp], edx
call fcn.00459d94
mov dword [edi + 0x48], 0
mov ecx, dword [edi + 0x54]
test ecx, ecx
je 0x430b14
mov dword [esp], ecx
call fcn.00459d94
lea esi, [edi + 8]
cmp dword [esi], 0
je 0x430b2c
mov edx, dword [esi]
mov dword [esp], edx
call fcn.00459d94
mov dword [esi], 0
cmp byte [edi + 0x4c], 0
je 0x430b4c
lea esi, [edi + 0x38]
cmp dword [esi], 0
je 0x430b64
mov edx, dword [esi]
mov dword [esp], edx
call fcn.00459d94
mov dword [esi], 0
jmp 0x430b64
lea esi, [edi + 0x10]
cmp dword [esi], 0
je 0x430b64
mov ecx, dword [esi]
mov dword [esp], ecx
call fcn.00459d94
mov dword [esi], 0
lea esi, [edi + 0x18]
cmp dword [esi], 0
je 0x430b7c
mov ecx, dword [esi]
mov dword [esp], ecx
call fcn.00459d94
mov dword [esi], 0
lea esi, [edi + 0x20]
cmp dword [esi], 0
je 0x430b94
mov edx, dword [esi]
mov dword [esp], edx
call fcn.00459d94
mov dword [esi], 0
lea esi, [edi + 0x28]
cmp dword [esi], 0
je 0x430bac
mov ecx, dword [esi]
mov dword [esp], ecx
call fcn.00459d94
mov dword [esi], 0
lea esi, [edi + 0x30]
cmp dword [esi], 0
je 0x430bc4
mov edx, dword [esi]
mov dword [esp], edx
call fcn.00459d94
mov dword [esi], 0
mov dword [esp], edi
call fcn.00459d94
inc ebx
cmp ebx, dword [esp + 0x30]
jb 0x430ab8
jmp 0x430d3e
mov edx, dword [esp + 0x80]
mov dword [esp + 0x44], edx
push 0
mov eax, dword [esp + 0x48]
call fcn.00431e28
mov ecx, dword [esp + 0x80]
mov ebp, dword [esp + 0x80]
lea eax, [ecx + 0xa8]
call fcn.00434414
xor ebx, ebx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edx
cmp dword [esp + 0x38], ebx
je 0x430d3e
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 0x430c56
cmp dword [edi + 0x40], 0
je 0x430c4f
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 0x430c6c
mov dword [esp], edx
call fcn.00459d94
mov dword [edi + 0x48], 0
mov ecx, dword [edi + 0x54]
test ecx, ecx
je 0x430c7b
mov dword [esp], ecx
call fcn.00459d94
lea esi, [edi + 8]
cmp dword [esi], 0
je 0x430c93
mov edx, dword [esi]
mov dword [esp], edx
call fcn.00459d94
mov dword [esi], 0
cmp byte [edi + 0x4c], 0
je 0x430cb3
lea esi, [edi + 0x38]
cmp dword [esi], 0
je 0x430ccb
mov edx, dword [esi]
mov dword [esp], edx
call fcn.00459d94
mov dword [esi], 0
jmp 0x430ccb
lea esi, [edi + 0x10]
cmp dword [esi], 0
je 0x430ccb
mov ecx, dword [esi]
mov dword [esp], ecx
call fcn.00459d94
mov dword [esi], 0
lea esi, [edi + 0x18]
cmp dword [esi], 0
je 0x430ce3
mov ecx, dword [esi]
mov dword [esp], ecx
call fcn.00459d94
mov dword [esi], 0
lea esi, [edi + 0x20]
cmp dword [esi], 0
je 0x430cfb
mov edx, dword [esi]
mov dword [esp], edx
call fcn.00459d94
mov dword [esi], 0
lea esi, [edi + 0x28]
cmp dword [esi], 0
je 0x430d13
mov ecx, dword [esi]
mov dword [esp], ecx
call fcn.00459d94
mov dword [esi], 0
lea esi, [edi + 0x30]
cmp dword [esi], 0
je 0x430d2b
mov edx, dword [esi]
mov dword [esp], edx
call fcn.00459d94
mov dword [esi], 0
mov dword [esp], edi
call fcn.00459d94
inc ebx
cmp ebx, dword [esp + 0x38]
jb 0x430c1f
cmp dword [esp + 0x40], 0
jne 0x430d80
lea eax, [esp + 0x80]
call fcn.00430f6c
xor al, 1
je 0x430d80
lea eax, [esp + 0x80]
call fcn.00430ff8
xor al, 1
je 0x430d80
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 0x430dc2
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.0045a258
push dword [esp + 0x48]
mov eax, dword [esp + 0x44]
call fcn.00433eec
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 0x430f4e
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 0x430e83
mov edx, dword [esp + 0x40]
cmp dword [edx + 0x24], 0
jne 0x430e7d
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.0045c13c
mov edx, dword [esp + 0x74]
test eax, eax
mov dword [edx], eax
je 0x430f3b
mov ecx, dword [ebx + 0x20]
or dword [ecx + esi*4], edi
test dword [esp + 0x8c], 1
je 0x430ecc
cmp dword [ebx + 0x1c], 0
jne 0x430ec6
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.0045c13c
mov ecx, dword [esp + 0x78]
test eax, eax
mov dword [ecx], eax
je 0x430f3b
mov edx, dword [ebx + 0x18]
or dword [edx + esi*4], edi
test dword [esp + 0x8c], 2
je 0x430edf
mov ecx, dword [ebx + 0x28]
or dword [ecx + esi*4], edi
test dword [esp + 0x8c], 8
je 0x430ef2
mov edx, dword [ebx + 0x30]
or dword [edx + esi*4], edi
cmp byte [ebx + 0x4c], 0
je 0x430f4e
test dword [esp + 0x8c], 0x10
je 0x430f4e
cmp dword [ebx + 0x3c], 0
jne 0x430f48
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.0045c13c
mov edx, dword [esp + 0x7c]
test eax, eax
mov dword [edx], eax
jne 0x430f48
call fcn.00418510
mov dword [esp], eax
call fcn.00413d00
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