Function at 0x6e917aa0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x3c
mov dword [ebp - 0x34], edx
mov edx, dword [eax]
test edx, edx
je 0x6e917d50
cmp word [edx], 0
je 0x6e917db5
mov eax, edx
lea esi, [esi]
lea edi, [edi]
add eax, 2
cmp word [eax], 0
jne 0x6e917ad0
sub eax, edx
add eax, 0x1e
mov dword [ebp - 0x28], eax
mov edx, dword [ebx + 4]
test edx, edx
je 0x6e917b15
cmp word [edx], 0
je 0x6e917dc1
mov eax, edx
lea esi, [esi]
lea edi, [edi]
add eax, 2
cmp word [eax], 0
jne 0x6e917b00
sub eax, edx
mov esi, dword [ebp - 0x28]
lea eax, [eax + esi + 2]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x6e917b41
mov eax, dword [ebx + 0x14]
shl ecx, 4
mov edx, dword [ebp - 0x28]
add ecx, eax
mov esi, esi
lea edi, [edi]
mov esi, dword [eax + 8]
add eax, 0x10
cmp ecx, eax
lea edx, [edx + esi + 0x10]
jne 0x6e917b30
mov dword [ebp - 0x28], edx
mov ecx, dword [ebp - 0x34]
test ecx, ecx
je 0x6e917d27
mov esi, dword [ebp - 0x28]
xor edx, edx
mov dword [esp + 4], edx
mov eax, dword fs:[0x18]
mov dword [esp + 8], esi
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x2c], eax
sub esp, 0xc
test eax, eax
mov edx, eax
je 0x6e917d20
lea esi, [eax + 0x1c]
mov eax, dword [ebx + 0x10]
shl eax, 4
lea edi, [edx + eax + 0x1c]
mov eax, dword [ebx]
mov dword [ebp - 0x24], edi
test eax, eax
je 0x6e917d60
mov eax, edi
sub eax, edx
mov dword [edx], eax
xor eax, eax
mov ecx, dword [ebx]
lea esi, [esi]
lea edi, [edi]
movzx edx, word [ecx + eax]
mov word [edi + eax], dx
add eax, 2
test edx, edx
jne 0x6e917bb0
mov edx, dword [ebx]
cmp word [edx], 0
je 0x6e917dc8
mov eax, edx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x6e917bd0
sub eax, edx
add eax, 2
add dword [ebp - 0x24], eax
mov eax, dword [ebx + 4]
test eax, eax
je 0x6e917d74
mov edi, dword [ebp - 0x24]
mov edx, dword [ebp - 0x2c]
mov eax, edi
sub eax, edx
mov dword [edx + 4], eax
xor eax, eax
mov ecx, dword [ebx + 4]
nop
movzx edx, word [ecx + eax]
mov word [edi + eax], dx
add eax, 2
test edx, edx
jne 0x6e917c00
mov edx, dword [ebx + 4]
cmp word [edx], 0
je 0x6e917dd2
mov eax, edx
nop
add eax, 2
cmp word [eax], 0
jne 0x6e917c20
sub eax, edx
add eax, 2
add dword [ebp - 0x24], eax
mov eax, dword [ebx + 8]
mov edx, 0x1c
mov edi, dword [ebp - 0x2c]
mov dword [edi + 8], eax
mov eax, dword [ebx + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [ebx + 0x10]
mov dword [edi + 0x10], eax
test eax, eax
cmovne eax, edx
mov dword [edi + 0x14], eax
mov eax, dword [ebx + 0x18]
mov dword [edi + 0x18], eax
mov edi, dword [ebx + 0x10]
test edi, edi
je 0x6e917d38
mov dword [ebp - 0x1c], 0
mov edx, dword [ebx + 0x14]
mov eax, esi
mov ecx, edx
jmp 0x6e917c99
mov ecx, dword [ebp - 0x20]
add eax, 0x10
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x14]
inc dword [ebp - 0x1c]
mov edi, dword [ecx + edx + 8]
add dword [ebp - 0x24], edi
mov edi, dword [ebp - 0x1c]
cmp dword [ebx + 0x10], edi
jbe 0x6e917d38
mov edx, dword [ebp - 0x1c]
shl edx, 4
mov ecx, dword [ecx + edx]
mov dword [eax], ecx
mov ecx, dword [ebx + 0x14]
mov ecx, dword [ecx + edx + 0xc]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebx + 0x14]
mov ecx, dword [ecx + edx + 8]
mov dword [eax + 8], ecx
test ecx, ecx
je 0x6e917cc4
mov ecx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x2c]
sub ecx, esi
mov dword [eax + 4], ecx
mov ecx, dword [ebx + 0x14]
add ecx, edx
mov edi, dword [ecx + 8]
mov esi, dword [ecx + 4]
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x20], edi
cmp dword [ebp - 0x20], 8
mov dword [ebp - 0x30], esi
mov edi, ecx
jb 0x6e917c78
test cl, 1
jne 0x6e917da0
test edi, 2
jne 0x6e917d88
test edi, 4
je 0x6e917c78
mov ecx, dword [esi]
add edi, 4
add esi, 4
mov dword [edi - 4], ecx
sub dword [ebp - 0x20], 4
jmp 0x6e917c78
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x28]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x34]
mov ebx, dword [ebp - 0x2c]
mov dword [eax], ebx
mov eax, dword [ebp - 0x28]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x28], 0x1c
jmp 0x6e917ae1
mov eax, dword [ebp - 0x2c]
mov dword [eax], 0
mov eax, dword [ebx + 4]
test eax, eax
jne 0x6e917bec
mov eax, dword [ebp - 0x2c]
mov dword [eax + 4], 0
jmp 0x6e917c31
movzx ecx, word [esi]
add edi, 2
add esi, 2
mov word [edi - 2], cx
sub dword [ebp - 0x20], 2
jmp 0x6e917cf8
movzx ecx, byte [esi]
inc esi
mov edi, dword [ebp - 0x24]
mov byte [ebp - 0x30], cl
mov byte [edi], cl
inc edi
dec dword [ebp - 0x20]
jmp 0x6e917cec
mov dword [ebp - 0x28], 0x1e
jmp 0x6e917ae1
xor eax, eax
jmp 0x6e917b0b
mov eax, 2
jmp 0x6e917bde
mov eax, 2
jmp 0x6e917c2e