Function at 0x4f2160
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60a9dc
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x7f206c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x98], edx
mov dword [ebp - 0x90], ecx
mov eax, dword fs:[0x2c]
mov esi, dword [eax]
mov eax, dword [0x80132c]
cmp eax, dword [esi + 4]
jg 0x4f2e25
mov ecx, dword [0x801324]
mov eax, 0x2aaaaaab
sub ecx, dword [0x801320]
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x4f21d7
call fcn.004f1d20
mov eax, dword [0x7f2bb8]
or edi, 0xffffffff
cmp byte [eax], 0
jne 0x4f22f7
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
mov al, byte [ebp - 0x17]
lea ecx, [ebp - 0x9c]
mov bl, byte [ebp - 0x15]
mov bh, byte [ebp - 0x16]
mov byte [ebp - 0xa5], al
mov al, byte [ebp - 0x18]
mov byte [ebp - 0xa6], al
mov al, byte [ebp - 0x19]
mov byte [ebp - 0xa7], al
mov al, byte [ebp - 0x1a]
mov byte [ebp - 0xa8], al
mov al, byte [ebp - 0x1b]
mov byte [ebp - 0xa9], al
mov al, byte [ebp - 0x1c]
push str._08X_04X_04X_02X_02X_02X_02X_02X_02X_02X_02X
mov byte [ebp - 0xaa], al
call fcn.0041d340
add esp, 4
movzx eax, bl
push eax
movzx eax, bh
push eax
movzx eax, byte [ebp - 0xa5]
push eax
movzx eax, byte [ebp - 0xa6]
push eax
movzx eax, byte [ebp - 0xa7]
push eax
movzx eax, byte [ebp - 0xa8]
push eax
movzx eax, byte [ebp - 0xa9]
push eax
movzx eax, byte [ebp - 0xaa]
push eax
mov dword [ebp - 4], 0
movzx eax, word [ebp - 0x1e]
mov esi, dword [ebp - 0x9c]
push eax
movzx eax, word [ebp - 0x20]
push eax
push dword [ebp - 0x24]
lea eax, [ebp - 0xa0]
push esi
push eax
call fcn.00529980
mov eax, dword [0x7f2bb8]
add esp, 0x34
mov ecx, dword [ebp - 0xa0]
mov dword [0x7f2bb8], ecx
lea ecx, [eax - 8]
cmp ecx, 0x7a1354
je 0x4f22d2
mov eax, edi
lock xadd dword [ecx], eax
test eax, eax
jne 0x4f22d2
push ecx
call fcn.004a8172
add esp, 4
add esi, 0xfffffff8
mov dword [ebp - 4], 0xffffffff
cmp esi, 0x7a1354
je 0x4f22f7
mov eax, edi
lock xadd dword [esi], eax
test eax, eax
jne 0x4f22f7
push esi
call fcn.004a8172
add esp, 4
push 0x14
call fcn.004a7e6f
mov ecx, eax
add esp, 4
lea edx, [ecx + 4]
mov dword [ebp - 0xa4], ecx
mov dword [edx], 0
mov eax, 1
mov dword [ebp - 0xb4], edx
mov dword [ecx], vtable.juce::DynamicObject.0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ebp - 0xb8], ecx
lock xadd dword [edx], eax
mov dword [ebp - 4], 1
mov eax, dword [ecx]
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x90]
mov dword [ebp - 0x24], 0x7ad200
mov ebx, dword [eax + 0xc]
call fcn.0041d340
add esp, 4
call fcn.005135b0
mov esi, eax
lea edi, [esi + 0x10]
push edi
mov dword [ebp - 0x94], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.005136c0
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0x62a3b8
push eax
mov edx, esi
lea ecx, [ebp - 0x90]
call fcn.004fbb20
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp - 0xa4]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x90]
mov byte [ebp - 4], 4
push eax
mov ecx, esi
call ebx
mov ecx, dword [ebp - 0x90]
add ecx, 0xfffffff8
cmp ecx, 0x7a1354
je 0x4f23ee
or eax, 0xffffffff
lock xadd dword [ecx], eax
test eax, eax
jne 0x4f23ee
push ecx
call fcn.004a8172
add esp, 4
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1c]
mov eax, dword [ebp - 0x24]
push ecx
mov eax, dword [eax + 0x30]
call eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
mov eax, dword [esi]
add esp, 4
mov dword [ebp - 0x24], 0x7ad200
push dword [ebp - 0x98]
mov ebx, dword [eax + 0xc]
call fcn.0041d340
add esp, 4
call fcn.005135b0
mov esi, eax
lea edi, [esi + 0x10]
push edi
mov dword [ebp - 0x94], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, esi
mov byte [ebp - 4], 7
call fcn.005136c0
lea eax, [ebp - 0x98]
mov dword [ebp - 0x98], 0x62a3bc
push eax
mov edx, esi
lea ecx, [ebp - 0x90]
call fcn.004fbb20
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp - 0xa4]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x90]
mov byte [ebp - 4], 8
push eax
mov ecx, esi
call ebx
mov ecx, dword [ebp - 0x90]
add ecx, 0xfffffff8
cmp ecx, 0x7a1354
je 0x4f24aa
or eax, 0xffffffff
lock xadd dword [ecx], eax
test eax, eax
jne 0x4f24aa
push ecx
call fcn.004a8172
add esp, 4
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x1c]
mov eax, dword [ebp - 0x24]
push ecx
mov eax, dword [eax + 0x30]
call eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
mov eax, dword [esi]
add esp, 4
mov dword [ebp - 0x24], 0x7ad200
mov ebx, dword [eax + 0xc]
push 0x629868
call fcn.0041d340
add esp, 4
call fcn.005135b0
mov esi, eax
lea edi, [esi + 0x10]
push edi
mov dword [ebp - 0x94], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, esi
mov byte [ebp - 4], 0xb
call fcn.005136c0
lea eax, [ebp - 0x98]
mov dword [ebp - 0x98], 0x62a3c0
push eax
mov edx, esi
lea ecx, [ebp - 0x90]
call fcn.004fbb20
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp - 0xa4]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x90]
mov byte [ebp - 4], 0xc
push eax
mov ecx, esi
call ebx
mov ecx, dword [ebp - 0x90]
or ebx, 0xffffffff
add ecx, 0xfffffff8
cmp ecx, 0x7a1354
je 0x4f2567
mov eax, ebx
lock xadd dword [ecx], eax
test eax, eax
jne 0x4f2567
push ecx
call fcn.004a8172
add esp, 4
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x1c]
mov eax, dword [ebp - 0x24]
push ecx
mov eax, dword [eax + 0x30]
call eax
mov byte [ebp - 4], 1
add esp, 4
mov eax, dword [esi]
push 0x7f2bd8
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x9c], eax
call fcn.004a5780
add esp, 4
test eax, eax
je 0x4f25a3
push eax
call fcn.004a5351
add esp, 4
mov esi, dword [0x7f2bcc]
push 0x7f2bd8
mov byte [ebp - 4], 0xe
call fcn.004a57a5
add esp, 4
test eax, eax
je 0x4f25c7
push eax
call fcn.004a5351
add esp, 4
mov dword [ebp - 0x24], 0x7ae6d0
mov dword [ebp - 0x1c], esi
call fcn.005135b0
mov esi, eax
lea edi, [esi + 0x10]
push edi
mov dword [ebp - 0x94], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, esi
mov byte [ebp - 4], 0x10
call fcn.005136c0
lea eax, [ebp - 0x98]
mov dword [ebp - 0x98], 0x62a3c4
push eax
mov edx, esi
lea ecx, [ebp - 0x90]
call fcn.004fbb20
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp - 0xa4]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x90]
mov byte [ebp - 4], 0x11
push eax
mov ecx, esi
call dword [ebp - 0x9c]
mov ecx, dword [ebp - 0x90]
add ecx, 0xfffffff8
cmp ecx, 0x7a1354
je 0x4f265c
mov eax, ebx
lock xadd dword [ecx], eax
test eax, eax
jne 0x4f265c
push ecx
call fcn.004a8172
add esp, 4
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x1c]
mov eax, dword [ebp - 0x24]
push ecx
mov eax, dword [eax + 0x30]
call eax
mov eax, dword [esi]
add esp, 4
mov dword [ebp - 0x24], 0x7ad200
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x9c], eax
mov eax, dword [0x7f2bb8]
mov dword [ebp - 0x1c], eax
lea ecx, [eax - 8]
cmp ecx, 0x7a1354
je 0x4f269d
mov eax, 1
lock xadd dword [ecx], eax
call fcn.005135b0
mov esi, eax
lea edi, [esi + 0x10]
push edi
mov dword [ebp - 0x94], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, esi
mov byte [ebp - 4], 0x14
call fcn.005136c0
lea eax, [ebp - 0x98]
mov dword [ebp - 0x98], str.uuid
push eax
mov edx, esi
lea ecx, [ebp - 0x90]
call fcn.004fbb20
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp - 0xa4]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x90]
mov byte [ebp - 4], 0x15
push eax
mov ecx, esi
call dword [ebp - 0x9c]
mov ecx, dword [ebp - 0x90]
add ecx, 0xfffffff8
cmp ecx, 0x7a1354
je 0x4f2728
mov eax, ebx
lock xadd dword [ecx], eax
test eax, eax
jne 0x4f2728
push ecx
call fcn.004a8172
add esp, 4
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x1c]
mov eax, dword [ebp - 0x24]
push ecx
mov eax, dword [eax + 0x30]
call eax
mov byte [ebp - 4], 1
add esp, 4
mov eax, dword [esi]
mov ebx, dword [eax + 0xc]
lea eax, [ebp - 0x9c]
push eax
call fcn.00407110
mov dword [ebp - 0x24], 0x7ad200
mov ecx, dword [eax]
mov dword [ebp - 0x1c], ecx
mov dword [eax], 0x7a135c
call fcn.005135b0
mov esi, eax
lea edi, [esi + 0x10]
push edi
mov dword [ebp - 0x94], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, esi
mov byte [ebp - 4], 0x19
call fcn.005136c0
lea eax, [ebp - 0x98]
mov dword [ebp - 0x98], 0x62a3d0
push eax
mov edx, esi
lea ecx, [ebp - 0x90]
call fcn.004fbb20
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp - 0xa4]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x90]
mov byte [ebp - 4], 0x1a
push eax
mov ecx, esi
call ebx
mov ecx, dword [ebp - 0x90]
add ecx, 0xfffffff8
cmp ecx, 0x7a1354
je 0x4f27ea
or eax, 0xffffffff
lock xadd dword [ecx], eax
test eax, eax
jne 0x4f27ea
push ecx
call fcn.004a8172
add esp, 4
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x1c]
mov eax, dword [ebp - 0x24]
push ecx
mov eax, dword [eax + 0x30]
call eax
mov byte [ebp - 4], 1
add esp, 4
mov ecx, dword [ebp - 0x9c]
add ecx, 0xfffffff8
cmp ecx, 0x7a1354
je 0x4f2826
or eax, 0xffffffff
lock xadd dword [ecx], eax
test eax, eax
jne 0x4f2826
push ecx
call fcn.004a8172
add esp, 4
call fcn.00527660
mov ecx, dword [esi]
and eax, 0xfffffdff
mov dword [ebp - 0x24], 0x7ae6d0
mov dword [ebp - 0x1c], eax
mov ebx, dword [ecx + 0xc]
call fcn.005135b0
mov esi, eax
lea edi, [esi + 0x10]
push edi
mov dword [ebp - 0x94], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, esi
mov byte [ebp - 4], 0x1d
call fcn.005136c0
lea eax, [ebp - 0x98]
mov dword [ebp - 0x98], 0x62a3d4
push eax
mov edx, esi
lea ecx, [ebp - 0xa0]
call fcn.004fbb20
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp - 0xa4]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 0x1e
push eax
mov ecx, esi
call ebx
mov ecx, dword [ebp - 0xa0]
add ecx, 0xfffffff8
cmp ecx, 0x7a1354
je 0x4f28c7
or eax, 0xffffffff
lock xadd dword [ecx], eax
test eax, eax
jne 0x4f28c7
push ecx
call fcn.004a8172
add esp, 4
mov byte [ebp - 4], 0x1f
lea ecx, [ebp - 0x1c]
mov eax, dword [ebp - 0x24]
push ecx
mov eax, dword [eax + 0x30]
call eax
add esp, 4
lea eax, [ebp - 0x8c]
push 0x40
push 0
push eax
call fcn.004c0240
add esp, 0xc
mov dword [ebp - 0x8c], 0x40
lea eax, [ebp - 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov eax, dword [esi]
mov ecx, dword [ebp - 0x84]
mov edx, dword [ebp - 0x80]
shrd ecx, edx, 0x1e
mov ebx, dword [eax + 0xc]
shr edx, 0x1e
mov dword [ebp - 0x24], 0x7ad240
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], edx
call fcn.005135b0
mov esi, eax
lea edi, [esi + 0x10]
push edi
mov dword [ebp - 0x94], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, esi
mov byte [ebp - 4], 0x21
call fcn.005136c0
lea eax, [ebp - 0x98]
mov dword [ebp - 0x98], 0x62a3d8
push eax
mov edx, esi
lea ecx, [ebp - 0xa0]
call fcn.004fbb20
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp - 0xa4]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 0x22
push eax
mov ecx, esi
call ebx
mov ecx, dword [ebp - 0xa0]
or ebx, 0xffffffff
add ecx, 0xfffffff8
cmp ecx, 0x7a1354
je 0x4f29b0
mov eax, ebx
lock xadd dword [ecx], eax
test eax, eax
jne 0x4f29b0
push ecx
call fcn.004a8172
add esp, 4
mov byte [ebp - 4], 0x23
lea ecx, [ebp - 0x1c]
mov eax, dword [ebp - 0x24]
push ecx
mov eax, dword [eax + 0x30]
call eax
mov eax, 0x7a135c
add esp, 4
mov dword [ebp - 0x90], eax
mov byte [ebp - 4], 0x24
mov ecx, dword [0x801324]
mov edi, dword [0x801320]
mov dword [ebp - 0x94], ecx
cmp edi, ecx
je 0x4f2bb2
nop dword [eax]
mov edx, eax
lea esi, [edx + 1]
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x4f29f5
sub edx, esi
lea ecx, [ebp - 0x90]
mov esi, edx
lea eax, [esi + 1]
push eax
call fcn.0051a030
mov ecx, dword [ebp - 0x90]
mov edx, edi
mov al, byte [0x62a3e8]
mov dword [ebp - 0x9c], edi
mov byte [ecx + esi], al
mov byte [ecx + esi + 1], 0
cmp dword [edi + 0x14], 0x10
jb 0x4f2a38
mov edx, dword [edi]
mov dword [ebp - 0x9c], edx
mov ecx, edx
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4f2a40
sub ecx, esi
mov eax, ecx
mov dword [ebp - 0xa0], eax
test eax, eax
jle 0x4f2aa4
mov edx, dword [ebp - 0x90]
lea esi, [edx + 1]
nop
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x4f2a60
mov eax, dword [ebp - 0xa0]
lea ecx, [ebp - 0x90]
sub edx, esi
mov esi, edx
add eax, esi
push eax
call fcn.0051a030
push dword [ebp - 0xa0]
add esi, dword [ebp - 0x90]
push dword [ebp - 0x9c]
push esi
call fcn.004bf740
mov eax, dword [ebp - 0xa0]
add esp, 0xc
mov byte [esi + eax], 0
mov edx, dword [ebp - 0x90]
lea esi, [edx + 1]
nop dword [eax]
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x4f2ab0
sub edx, esi
lea ecx, [ebp - 0x90]
mov esi, edx
lea eax, [esi + 1]
push eax
call fcn.0051a030
mov ecx, dword [ebp - 0x90]
mov al, byte [0x62a3e4]
mov byte [ecx + esi], al
mov byte [ecx + esi + 1], 0
lea ecx, [ebp - 0x98]
push dword [edi + 0x1c]
push dword [edi + 0x18]
call fcn.005196d0
push eax
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 0x25
call fcn.00529ba0
mov byte [ebp - 4], 0x24
mov esi, eax
mov edx, dword [ebp - 0x98]
add edx, 0xfffffff8
cmp edx, 0x7a1354
je 0x4f2b28
mov ecx, ebx
lock xadd dword [edx], ecx
test ecx, ecx
jne 0x4f2b28
push edx
call fcn.004a8172
add esp, 4
push 0x62a3e0
mov ecx, esi
call fcn.00518bc0
push dword [edi + 0x24]
lea ecx, [ebp - 0xb0]
push dword [edi + 0x20]
call fcn.005196d0
push eax
mov ecx, esi
mov byte [ebp - 4], 0x26
call fcn.00529ba0
mov byte [ebp - 4], 0x24
mov esi, eax
mov edx, dword [ebp - 0xb0]
add edx, 0xfffffff8
cmp edx, 0x7a1354
je 0x4f2b7b
mov ecx, ebx
lock xadd dword [edx], ecx
test ecx, ecx
jne 0x4f2b7b
push edx
call fcn.004a8172
add esp, 4
push 0x62a3dc
mov ecx, esi
call fcn.00518bc0
push 0x62a3ec
lea ecx, [ebp - 0x90]
call fcn.00518bc0
mov eax, dword [ebp - 0x90]
add edi, 0x30
cmp edi, dword [ebp - 0x94]
jne 0x4f29f0
mov esi, dword [ebp - 0xa4]
mov ecx, dword [esi]
mov dword [ebp - 0x24], 0x7ad200
mov dword [ebp - 0x1c], eax
mov edi, dword [ecx + 0xc]
lea ecx, [eax - 8]
cmp ecx, 0x7a1354
je 0x4f2bd5
mov eax, 1
lock xadd dword [ecx], eax
mov byte [ebp - 4], 0x27
call fcn.005135b0
push 0x62a3f0
lea ecx, [ebp - 0x9c]
push ecx
mov ecx, eax
call fcn.00513a90
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 0x28
push eax
lea eax, [ebp - 0x9c]
mov ecx, esi
push eax
call edi
mov ecx, dword [ebp - 0x9c]
add ecx, 0xfffffff8
cmp ecx, 0x7a1354
je 0x4f2c28
mov eax, ebx
lock xadd dword [ecx], eax
test eax, eax
jne 0x4f2c28
push ecx
call fcn.004a8172
add esp, 4
mov byte [ebp - 4], 0x29
lea ecx, [ebp - 0x1c]
mov eax, dword [ebp - 0x24]
push ecx
mov eax, dword [eax + 0x30]
call eax
mov ecx, dword [ebp - 0x90]
add esp, 4
add ecx, 0xfffffff8
cmp ecx, 0x7a1354
je 0x4f2c5f
mov eax, ebx
lock xadd dword [ecx], eax
test eax, eax
jne 0x4f2c5f
push ecx
call fcn.004a8172
add esp, 4
mov dword [ebp - 0x24], 0x7ad280
lea ecx, [esi + 4]
mov dword [ebp - 0x1c], esi
mov eax, 1
lock xadd dword [ecx], eax
push 0x400
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x2a
call fcn.0051ac70
push 0xf
push 0
push 0
lea edx, [ebp - 0x24]
mov byte [ebp - 4], 0x2b
lea ecx, [ebp - 0x48]
call fcn.004145d0
add esp, 0xc
lea eax, [ebp - 0x94]
lea ecx, [ebp - 0x48]
push eax
call fcn.0051a850
lea ecx, [ebp - 0x48]
call fcn.0051ab70
mov byte [ebp - 4], 0x2e
lea ecx, [ebp - 0x1c]
mov eax, dword [ebp - 0x24]
push ecx
mov eax, dword [eax + 0x30]
call eax
mov byte [ebp - 4], 0x2d
add esp, 4
mov esi, dword [ebp - 0x94]
mov ecx, esi
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0xf
mov byte [ebp - 0x3c], 0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4f2cf0
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x3c]
call fcn.004074c0
mov byte [ebp - 4], 0x2f
lea edx, [ebp - 0x3c]
cmp dword [ebp - 0x28], 0x10
lea ecx, [ebp - 0xb0]
push dword [ebp - 0x2c]
cmovae edx, dword [ebp - 0x3c]
call fcn.005274e0
add esp, 4
mov eax, dword [ebp - 0xb0]
mov edx, 1
mov dword [ebp - 0x98], eax
lea edi, [eax - 8]
cmp edi, 0x7a1354
je 0x4f2d45
mov ecx, edx
lock xadd dword [edi], ecx
cmp edi, 0x7a1354
je 0x4f2d51
lock xadd dword [edi], edx
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x74]
mov dword [ebp - 0x74], vtable.std::_Func_impl_no_alloc_class__lambda_e8415cd987820f447291c0956275c69d___void___.0
mov dword [ebp - 0x50], eax
sub esp, 0x28
mov byte [ebp - 4], 0x32
mov ecx, esp
push eax
call fcn.00404200
call fcn.00512870
mov ecx, dword [ebp - 0x50]
add esp, 0x28
test ecx, ecx
je 0x4f2d90
mov edx, dword [ecx]
lea eax, [ebp - 0x74]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
cmp edi, 0x7a1354
je 0x4f2dc6
mov eax, ebx
lock xadd dword [edi], eax
test eax, eax
jne 0x4f2dab
push edi
call fcn.004a8172
add esp, 4
cmp edi, 0x7a1354
je 0x4f2dc6
mov eax, ebx
lock xadd dword [edi], eax
test eax, eax
jne 0x4f2dc6
push edi
call fcn.004a8172
add esp, 4
lea ecx, [ebp - 0x3c]
call fcn.00403900
add esi, 0xfffffff8
cmp esi, 0x7a1354
je 0x4f2dec
mov eax, ebx
lock xadd dword [esi], eax
test eax, eax
jne 0x4f2dec
push esi
call fcn.004a8172
add esp, 4
mov eax, dword [ebp - 0xb4]
lock xadd dword [eax], ebx
lea eax, [ebx - 1]
test eax, eax
jne 0x4f2e09
mov ecx, dword [ebp - 0xa4]
push 1
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a7e5e
mov esp, ebp
pop ebp
ret
push 0x80132c
call fcn.004a8317
add esp, 4
cmp dword [0x80132c], 0xffffffff
jne 0x4f21b3
push 0x61a170
call fcn.004a815d
add esp, 4
push 0x80132c
call fcn.004a82cd
add esp, 4
jmp 0x4f21b3