Function at 0x687c54c0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, edx
push esi
push ebx
mov ebx, eax
sub esp, 0x5c
mov dword [ebp - 0x34], ecx
test byte [0x687da03c], 8
jne 0x687c57e0
mov eax, dword [ebx + 0x54]
mov eax, dword [eax + 0x78]
test eax, eax
je 0x687c5aa8
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x687c5770
test edi, edi
je 0x687c5b2e
mov esi, dword [ebp + 0x14]
and esi, 0x100
je 0x687c5b3a
mov eax, dword [edi]
cmp eax, 1
je 0x687c5978
cmp eax, 0x19a9d65b
je 0x687c5a90
mov dword [ebp - 0x30], 9
mov esi, 1
test dword [ebp + 0x14], 0x300
jne 0x687c5545
test byte [0x687da03c], 2
jne 0x687c5a20
mov dword [ebp + 0x14], esi
cmp dword [edi], 0xffffffff
jne 0x687c5788
mov eax, dword [ebx + 0x54]
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x687c59c0
mov eax, 1
mov edx, 0x687da038
lock xadd dword [edx], eax
add eax, 1
mov dword [ebp - 0x2c], 0
mov dword [edi], eax
test byte [0x687da03c], 8
jne 0x687c579c
mov edx, dword fs:[0x18]
mov dword [esp + 8], 0x34
mov dword [esp + 4], 8
mov eax, dword [edx + 0x30]
mov dword [ebp - 0x38], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call sub.kernel32.dll_HeapAlloc
mov edx, dword [ebp - 0x38]
sub esp, 0xc
test eax, eax
mov esi, eax
je 0x687c5ab8
mov eax, dword [edi]
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp + 0x18]
mov dword [esi], eax
lea eax, [esi + 4]
call fcn.687c3520
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp + 8]
mov dword [esi + 0x30], eax
test edx, edx
je 0x687c5630
lea eax, [esi + 0x14]
mov dword [esp + 0x18], 2
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], eax
mov dword [esp], 0xffffffff
call sub.kernel32.dll_DuplicateHandle
sub esp, 0x1c
test eax, eax
jne 0x687c5630
test byte [0x687da03c], 2
jne 0x687c5900
lea esi, [esi]
nop
call fcn.687cf030
mov dword [esi + 0x2c], eax
test byte [0x687da03c], 8
jne 0x687c5840
test byte [ebp + 0x14], 1
jne 0x687c5655
mov eax, dword [ebx + 0x54]
mov eax, dword [eax + 0x1c]
add dword [eax + 0x2c], 1
mov dword [esp + 8], 0xc
mov dword [esp + 4], 8
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call sub.kernel32.dll_HeapAlloc
sub esp, 0xc
mov edx, eax
test eax, eax
je 0x687c5adb
mov dword [esi + 0x18], 1
mov ecx, dword [ebp + 0xc]
mov dword [eax], 0
mov dword [eax + 8], esi
mov eax, dword [ebx + 0x54]
mov eax, dword [eax + 0x18]
mov eax, dword [eax + 0x14]
mov dword [edx + 4], eax
mov eax, dword [ebx + 0x54]
mov eax, dword [eax + 0x18]
mov eax, dword [eax + 0x14]
mov dword [eax], edx
mov eax, dword [ebx + 0x54]
mov eax, dword [eax + 0x18]
mov dword [eax + 0x14], edx
mov eax, dword [ebp + 0x10]
xor edx, edx
mov dword [esp], eax
mov eax, esi
call fcn.687c3350
mov eax, dword [ebx + 0x54]
mov edx, dword [eax + 0x30]
mov ecx, dword [edx + 0x20]
test ecx, ecx
je 0x687c5716
mov edx, dword [edi]
mov esi, dword [ebp - 0x30]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], esi
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x1c], eax
test byte [0x687da03c], 8
jne 0x687c58b8
lea eax, [ebp - 0x28]
mov dword [esp], eax
call ecx
mov dword [ebp - 0x2c], eax
sub esp, 4
test eax, eax
js 0x687c5870
mov eax, dword [ebx + 0x54]
mov edx, dword [eax + 0x30]
mov edx, dword [edx + 0x14]
test edx, edx
je 0x687c5755
mov ecx, dword [edi]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], ecx
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x20], eax
test byte [0x687da03c], 8
jne 0x687c5a58
lea eax, [ebp - 0x28]
mov dword [esp], eax
call edx
mov dword [ebp - 0x2c], eax
sub esp, 4
test eax, eax
js 0x687c5930
mov eax, dword [ebx + 0x54]
mov eax, dword [eax + 0x14]
test eax, eax
je 0x687c59a0
mov eax, dword [ebp - 0x2c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
test edi, edi
je 0x687c5b2e
cmp dword [edi], 0xffffffff
mov dword [ebp - 0x30], 8
je 0x687c5551
mov dword [ebp - 0x2c], 0
test byte [0x687da03c], 8
je 0x687c5586
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 0xc], str.__p_____p__p__u__n
mov dword [esp + 0x18], eax
mov dword [esp + 8], str.DP_CreatePlayer
mov dword [esp + 4], 0x687da03c
mov dword [esp], 3
call fcn.687c3970
jmp 0x687c5586
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0xc], str.__p_____p__p__p__p_0x_08x_0x_08x__u__n
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], str.DP_IF_CreatePlayer
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0x687da03c
mov dword [esp + 0x1c], eax
mov dword [esp], 3
call fcn.687c3970
jmp 0x687c54dd
mov eax, dword [edi]
mov dword [esp + 0xc], str.Created_player_id_0x_08x_n
mov dword [esp + 8], str.DP_CreatePlayer
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x687da03c
mov dword [esp], 3
call fcn.687c3970
jmp 0x687c5645
test byte [0x687da03c], 2
je 0x687c5760
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call fcn.687d14e0
mov dword [esp + 0xc], str.Failed_to_create_player_with_sp:__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.DP_IF_CreatePlayer
mov dword [esp + 4], 0x687da03c
mov dword [esp], 1
call fcn.687c3970
jmp 0x687c5760
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], str.Calling_SP_CreatePlayer_0x_08x:_dwFlags:_0x_08x_lpMsgHdr:__p_n
mov dword [esp + 8], str.DP_IF_CreatePlayer
mov dword [esp + 4], 0x687da03c
mov dword [esp], 3
call fcn.687c3970
mov eax, dword [ebx + 0x54]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax + 0x20]
jmp 0x687c56fa
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], str.Cant_duplicate_player_msg_handle__p_n
mov dword [esp + 8], str.DP_CreatePlayer
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x687da03c
mov dword [esp], 1
call fcn.687c3970
jmp 0x687c5630
test byte [0x687da03c], 2
je 0x687c5760
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call fcn.687d14e0
mov dword [esp + 0xc], str.Failed_to_add_player_to_sys_group_with_sp:__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.DP_IF_CreatePlayer
mov dword [esp + 4], 0x687da03c
mov dword [esp], 1
call fcn.687c3970
jmp 0x687c5760
mov dword [ebp - 0x30], 0x88
mov esi, pe_nt_image_headers32
test dword [ebp + 0x14], 0x300
je 0x687c5538
mov dword [ebp + 0x14], esi
mov dword [ebp - 0x2c], 0
jmp 0x687c5579
mov eax, dword [edi]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.687d2410
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x30]
mov dword [esp + 8], edi
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.687d22a0
mov dword [ebp - 0x2c], eax
test eax, eax
jns 0x687c5579
test byte [0x687da03c], 2
je 0x687c5760
mov dword [esp], eax
call fcn.687d14e0
mov dword [esp + 0xc], str.Request_for_ID_failed:__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.DP_IF_CreatePlayer
mov dword [esp + 4], 0x687da03c
mov dword [esp], 1
call fcn.687c3970
jmp 0x687c5760
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], str.unknown_dwFlags__0x_08x_n
mov dword [esp + 8], str.DP_IF_CreatePlayer
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x687da03c
mov dword [esp], 1
call fcn.687c3970
mov dword [ebp + 0x14], esi
jmp 0x687c5548
mov dword [esp + 0xc], str.Calling_SP_AddPlayerToGroup__sys_group__n
mov dword [esp + 8], str.DP_IF_CreatePlayer
mov dword [esp + 4], 0x687da03c
mov dword [esp], 3
call fcn.687c3970
mov eax, dword [ebx + 0x54]
mov eax, dword [eax + 0x30]
mov edx, dword [eax + 0x14]
jmp 0x687c573c
mov dword [ebp - 0x30], 0xb
mov esi, 3
jmp 0x687c5984
mov dword [ebp - 0x2c], 0x88770140
jmp 0x687c5760
mov dword [esp + 8], 0xc
mov dword [esp + 4], 8
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call sub.kernel32.dll_HeapAlloc
sub esp, 0xc
mov edx, eax
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov ebx, dword fs:[0x18]
mov eax, dword [ebx + 0x30]
mov dword [ebp - 0x2c], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call sub.kernel32.dll_HeapFree
mov edx, dword [ebp - 0x2c]
sub esp, 0xc
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call sub.kernel32.dll_HeapFree
mov dword [ebp - 0x2c], 0x88770028
sub esp, 0xc
jmp 0x687c5760
mov dword [ebp - 0x2c], 0x80070057
jmp 0x687c5760
mov dword [ebp - 0x30], 8
jmp 0x687c552f