Function at 0x413310
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
push 0x540
call edi
mov esi, eax
add esp, 4
test esi, esi
jne 0x413355
push str.smack
push str._s:_out_of_memory_error_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00401010
add esp, 0xc
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
push 0x540
push 0
push esi
call sub.VCRUNTIME140.dll_memset
or dword [esi + 4], 1
push 0x14
call edi
mov ecx, eax
add esp, 0x10
mov dword [esi], ecx
test ecx, ecx
je 0x41332f
movups xmm0, xmmword [str.memcached_responses]
mov ebx, dword [ebp + 8]
mov edx, 1
mov dword [ebp - 8], 0
movups xmmword [ecx], xmm0
mov eax, dword [0x44d990]
mov dword [ecx + 0x10], eax
mov dword [ebx + 0x10], esi
mov esi, dword [str.ERROR]
test esi, esi
je 0x413461
mov edi, 0x45ad98
xor ebx, ebx
nop
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4133b3
sub esi, ecx
lea eax, [esi + 2]
test eax, eax
cmove eax, edx
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
je 0x41359c
push esi
push dword [edi]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp - 4]
add esp, 0xc
lea edx, [ecx + esi]
xor edi, edi
mov byte [edx + 1], 0
inc esi
mov dword [ebp - 0xc], edx
mov al, byte [edi + str.__t_r_n]
mov byte [edx], al
mov edx, ecx
push dword [ebx + 0x45ada4]
mov eax, dword [ebp + 8]
push dword [ebx + 0x45ada0]
push esi
mov ecx, dword [eax + 0x10]
call fcn.0043a740
mov ecx, dword [ebp - 4]
inc edi
mov edx, dword [ebp - 0xc]
add esp, 0xc
cmp edi, 4
jb 0x4133f5
mov eax, ecx
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [ebp - 8]
add esp, 4
inc eax
mov edx, 1
mov dword [ebp - 8], eax
lea ebx, [eax + eax*4]
shl ebx, 2
mov esi, dword [ebx + 0x45ad98]
lea edi, [ebx + 0x45ad98]
test esi, esi
jne 0x4133b0
mov ebx, dword [ebp + 8]
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ecx, dword [ebx + 0x10]
call fcn.0043aee0
mov eax, dword [ebx + 0x10]
push 0x540
mov dword [0x4dc630], eax
call edi
mov esi, eax
add esp, 4
test esi, esi
je 0x41332f
push 0x540
push 0
push esi
call sub.VCRUNTIME140.dll_memset
or dword [esi + 4], 1
push 0x10
call edi
add esp, 0x10
mov dword [esi], eax
test eax, eax
je 0x41332f
movups xmm0, xmmword [str.memcached_stats]
mov dword [ebp - 8], 0
movups xmmword [eax], xmm0
mov dword [ebx + 0x14], esi
mov esi, dword [0x45ac80]
test esi, esi
je 0x413581
mov edi, 0x45ac80
xor ebx, ebx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4134d3
sub esi, ecx
mov ecx, 1
lea eax, [esi + 2]
test eax, eax
cmove eax, ecx
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
je 0x41359c
push esi
push dword [edi]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp - 4]
add esp, 0xc
lea edx, [ecx + esi]
xor edi, edi
mov byte [edx + 1], 0
inc esi
mov dword [ebp - 0xc], edx
nop word [eax + eax]
mov al, byte [edi + str.__t_r_n]
mov byte [edx], al
mov edx, ecx
push dword [ebx + 0x45ac8c]
mov eax, dword [ebp + 8]
push dword [ebx + 0x45ac88]
push esi
mov ecx, dword [eax + 0x14]
call fcn.0043a740
mov ecx, dword [ebp - 4]
inc edi
mov edx, dword [ebp - 0xc]
add esp, 0xc
cmp edi, 4
jb 0x413520
mov eax, ecx
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [ebp - 8]
add esp, 4
inc eax
mov dword [ebp - 8], eax
lea ebx, [eax + eax*4]
shl ebx, 2
mov esi, dword [ebx + 0x45ac80]
lea edi, [ebx + 0x45ac80]
test esi, esi
jne 0x4134d0
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx + 0x14]
call fcn.0043aee0
mov ecx, dword [ebx + 0x14]
mov eax, dword [ebx + 8]
pop edi
pop esi
mov dword [0x4dc634], ecx
pop ebx
mov esp, ebp
pop ebp
ret
push str.____out_of_memory__aborting_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00401010
add esp, 8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3