Function at 0x687d5e40
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x5c
mov dword [ebp - 0x1c], 0
test byte [0x687da08c], 1
jne 0x687d6070
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x687d60e0
test ebx, ebx
mov eax, pe_nt_image_headers32
mov dword [esp], edi
cmove ebx, eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
call fcn.687cd570
mov edx, eax
test eax, eax
jne 0x687d5f98
lea eax, [esi + 0x10]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x2c], eax
mov edi, eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], edi
call dword [eax + 0x20]
sub esp, 0x10
mov edx, eax
cmp eax, 0x8877001e
je 0x687d5ed0
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword fs:[0x18]
mov edi, eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], 8
mov dword [esp + 8], eax
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call sub.kernel32.dll_HeapAlloc
sub esp, 0xc
mov ecx, eax
test eax, eax
je 0x687d60fa
mov eax, dword [esi + 0x10]
lea esi, [ebp - 0x1c]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], esi
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 0x30], ecx
mov dword [esp + 4], 0
mov dword [esp], esi
call dword [eax + 0x20]
mov ecx, dword [ebp - 0x30]
sub esp, 0x10
test eax, eax
js 0x687d60b0
and ebx, 0x80
mov eax, pe_nt_image_headers32
mov dword [ebp - 0x30], ecx
cmovne ebx, eax
mov eax, dword [ebp + 8]
or ebx, dword [ecx + 4]
mov eax, dword [eax]
mov edx, dword [eax]
mov dword [esp + 8], ebx
mov ebx, dword [ecx + 8]
mov dword [esp], eax
mov dword [esp + 4], ebx
call dword [edx + 0x60]
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x2c], eax
sub esp, 0xc
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call sub.kernel32.dll_HeapFree
mov edx, dword [ebp - 0x2c]
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
mov eax, edx
pop esi
pop edi
pop ebp
ret
test byte [0x687da08c], 2
je 0x687d5ec5
mov dword [esp], eax
mov dword [ebp - 0x2c], eax
call fcn.687d14e0
test edi, edi
mov edx, dword [ebp - 0x2c]
mov ebx, eax
je 0x687d60f0
mov eax, edi
shr eax, 0x10
je 0x687d60c0
movzx eax, byte [edi + 0xf]
mov dword [ebp - 0x2c], edx
mov dword [esp + 0x2c], eax
movzx eax, byte [edi + 0xe]
mov dword [esp + 0x28], eax
movzx eax, byte [edi + 0xd]
mov dword [esp + 0x24], eax
movzx eax, byte [edi + 0xc]
mov dword [esp + 0x20], eax
movzx eax, byte [edi + 0xb]
mov dword [esp + 0x1c], eax
movzx eax, byte [edi + 0xa]
mov dword [esp + 0x18], eax
movzx eax, byte [edi + 9]
mov dword [esp + 0x14], eax
movzx eax, byte [edi + 8]
mov dword [esp + 0x10], eax
movzx eax, word [edi + 6]
mov dword [esp + 0xc], eax
movzx eax, word [edi + 4]
mov dword [esp + 8], eax
mov eax, dword [edi]
mov dword [esp], 0x687e08a8
mov dword [esp + 4], eax
call fcn.687d2fb0
mov edx, dword [ebp - 0x2c]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.error_creating_interface_for__s:_s._n
mov dword [esp + 8], str.DPL_ConnectEx
mov dword [esp + 4], 0x687da08c
mov dword [esp], 1
mov dword [ebp - 0x2c], edx
call fcn.687d3010
mov edx, dword [ebp - 0x2c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
mov eax, edx
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], esi
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], str.__p____0x_08x__p__p_:_semi_stub_n
mov dword [esp + 0x18], eax
mov dword [esp + 8], str.DPL_ConnectEx
mov dword [esp + 4], 0x687da08c
mov dword [esp], 0
call fcn.687d3010
jmp 0x687d5e63
mov dword [ebp - 0x2c], eax
jmp 0x687d5f67
movzx ecx, di
mov dword [esp], 0x687e0897
mov dword [esp + 4], ecx
call fcn.687d2fb0
mov edx, dword [ebp - 0x2c]
jmp 0x687d6030
mov edx, 0x80070057
jmp 0x687d5ec5
mov eax, 0x687e0947
jmp 0x687d6030
mov edx, 0x8007000e
jmp 0x687d5ec5