Function at 0x615421d0
Capabilities:
Check for peb beingdebugged flag
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x58
mov eax, dword [ecx + 8]
mov esi, dword [ecx]
mov edi, dword [ecx + 4]
mov dword [ebp - 0x24], eax
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x2c], eax
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0x30], eax
mov eax, dword [ecx + 0x18]
mov dword [ebp - 0x34], eax
test byte [0x61544018], 1
jne 0x615424b8
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 4]
test eax, eax
je 0x615423a8
lea eax, [eax + edx + 2]
mov dword [esp + 4], 0
add eax, eax
mov dword [esp + 8], eax
mov ecx, dword fs:[0x18]
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x20], eax
call eax
mov dword [ebp - 0x1c], eax
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x6154249f
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 8]
mov dword [esp], ebx
add eax, eax
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call sym._memcpy
mov eax, dword [esi + 0xc]
mov ecx, 0x5c
mov word [ebx + eax*2], cx
mov eax, dword [esi + 0xc]
mov ecx, dword [esi]
lea edx, [ebx + eax*2 + 2]
mov eax, dword [esi + 4]
mov dword [esp], edx
add eax, eax
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call sym._memcpy
mov eax, dword [esi + 4]
xor edx, edx
add eax, dword [esi + 0xc]
mov word [ebx + eax*2 + 2], dx
test edi, edi
jne 0x6154240b
mov edi, dword [ebp - 0x1c]
cmp word [edi], 0
mov eax, edi
je 0x61542522
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x615422c8
mov edi, dword [ebp - 0x1c]
sub eax, edi
add eax, 2
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x20]
call eax
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x61542478
mov ecx, dword [ebp - 0x1c]
xor eax, eax
lea esi, [esi]
movzx edx, word [ecx + eax]
mov word [ebx + eax], dx
add eax, 2
test dx, dx
jne 0x61542310
mov eax, dword [esi + 0x14]
mov dword [esp + 4], 0
mov ecx, dword fs:[0x18]
lea edi, [eax + eax]
mov dword [esp + 8], edi
mov eax, dword [ecx + 0x30]
mov dword [ebp - 0x38], ecx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x20]
call eax
mov ecx, dword [ebp - 0x38]
sub esp, 0xc
test eax, eax
mov edx, eax
je 0x6154252c
mov eax, dword [esi + 0x10]
mov dword [esp + 8], edi
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [ebp - 0x20], edx
call sym._memcpy
mov eax, dword [ebp - 0x24]
mov esi, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
mov dword [eax], 2
mov eax, dword [ebp - 0x2c]
mov dword [eax], esi
mov eax, dword [ebp - 0x28]
mov dword [eax], ebx
mov eax, dword [ebp - 0x30]
mov dword [eax], edx
mov eax, dword [ebp - 0x34]
mov dword [eax], edi
lea esp, [ebp - 0x10]
xor eax, eax
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x1c
lea edx, [edx + edx + 2]
mov dword [esp + 4], 0
mov dword [esp + 8], edx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x20], eax
call eax
mov dword [ebp - 0x1c], eax
sub esp, 0xc
mov ecx, eax
mov ebx, eax
test eax, eax
je 0x6154249f
mov eax, dword [esi + 4]
mov edx, dword [esi]
mov dword [esp], ecx
add eax, eax
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call sym._memcpy
mov eax, dword [esi + 4]
xor edx, edx
mov word [ebx + eax*2], dx
test edi, edi
je 0x615422b5
cmp word [edi], 0
je 0x61542518
mov eax, edi
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x61542420
sub eax, edi
add eax, 2
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x20]
call eax
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x61542478
xor eax, eax
lea esi, [esi]
movzx edx, word [edi + eax]
mov word [ebx + eax], dx
add eax, 2
test dx, dx
jne 0x61542460
jmp 0x61542320
mov edi, dword [ebp - 0x1c]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], edi
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
lea esp, [ebp - 0x10]
mov eax, 0x80090300
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x1c
mov eax, edi
call sym._wine_dbgstr_wn.constprop.0
mov ecx, dword [ebp - 0x34]
mov dword [esp + 0x28], ecx
mov ecx, dword [ebp - 0x30]
mov dword [esp + 0x24], ecx
mov ecx, dword [ebp - 0x2c]
mov dword [esp + 0x20], ecx
mov ecx, dword [ebp - 0x28]
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebp - 0x24]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str._p__s__p__p__p__p__p_n
mov dword [esp + 8], str.SspiPrepareForCredWrite
mov dword [esp + 4], 0x61544018
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x61542214
mov eax, 2
jmp 0x6154242e
mov eax, 2
jmp 0x615422d9
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], 0
mov esi, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [esp + 8], eax
mov eax, dword [ecx + 0x30]
mov dword [ebp - 0x1c], ecx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
sub esp, 0xc
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
sub esp, 0xc
jmp 0x6154249f