Function at 0x423750
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4eb088
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x24], esi
call fcn.0045ae70
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x58]
mov dword [esi + 0x34], ecx
mov ecx, dword [esp + 0x6c]
mov dword [esi + 0x30], eax
mov eax, dword [esp + 0x54]
mov dword [esi + 0xa0], ecx
lea ecx, [esi + 0x24]
lea ebx, [esi + 0x20]
mov dword [esi + 0x9c], edx
mov edx, dword [esp + 0x70]
push ecx
xor ebp, ebp
push ebx
push eax
mov dword [esp + 0x4c], ebp
mov dword [esi], 0x4f2a8c
mov dword [esi + 8], str.ToggleControl_gump
mov dword [esi + 0x60], ebp
mov dword [esi + 0x54], eax
mov dword [esi + 0xa4], edx
mov dword [esi + 0xac], ebp
mov dword [esi + 0xa8], ebp
mov dword [esi + 0x64], ebp
mov dword [esi + 0xbc], ebp
mov dword [esi + 0xb4], ebp
mov dword [esi + 0x50], ebp
mov dword [esi + 0x4c], ebp
mov dword [esi + 0x48], ebp
mov dword [esi + 0x44], ebp
mov dword [esi + 0x40], ebp
call fcn.004447f0
mov eax, dword [esp + 0x68]
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x28]
push ecx
push edx
mov edx, dword [esp + 0x78]
lea ecx, [esp + 0x2c]
and eax, 0xffff
push ecx
push edx
push eax
mov dword [esp + 0x68], eax
call fcn.00442f10
mov eax, dword [esp + 0x38]
mov edi, dword [ebx]
add eax, 4
add esp, 0x20
add edi, eax
mov eax, edi
mov dword [ebx], edi
mov ecx, eax
and ecx, reloc.DSOUND.dll_DirectSoundCreate
jns 0x423840
dec ecx
or ecx, 0xfffffffe
inc ecx
cmp ecx, 1
jne 0x423848
inc eax
mov dword [ebx], eax
push str.framedata_for_CToggleControlGump
push 8
mov dword [esi + 0x14], ebp
mov dword [esi + 0x18], 1
call fcn.00479630
mov ecx, dword [esi + 0x18]
mov edi, eax
shl ecx, 3
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [esi + 0x3c], edi
push str.togglectrl_frame0
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebx]
imul eax, dword [esi + 0x24]
lea ecx, [eax + eax + 4]
push ecx
call fcn.00479630
mov edx, dword [esi + 0x3c]
mov dword [edx + 4], eax
mov ecx, dword [ebx]
imul ecx, dword [esi + 0x24]
mov edx, dword [esi + 0x3c]
xor eax, eax
shl ecx, 1
mov edi, dword [edx + 4]
mov edx, ecx
add edi, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi + 0x3c]
mov dx, word [ebx]
mov ecx, dword [eax + 4]
mov word [ecx], dx
mov eax, dword [esi + 0x3c]
mov dx, word [esi + 0x24]
mov ecx, dword [eax + 4]
lea eax, [esp + 0x24]
push eax
mov word [ecx + 2], dx
mov edx, dword [esi + 0x54]
lea ecx, [esp + 0x24]
push ecx
push edx
call fcn.004447f0
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x38]
sub eax, edx
mov ecx, dword [esp + 0x2c]
cdq
mov ebx, dword [ebx]
sub eax, edx
mov edx, dword [esi + 0x24]
add ecx, 4
mov dword [esp + 0x50], edx
lea edx, [esp + 0x44]
push edx
mov edx, dword [esi + 0x3c]
sar eax, 1
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], ebx
mov edx, dword [edx + 4]
add edx, 4
push ebx
push edx
mov edx, dword [esp + 0x8c]
push edx
mov edx, dword [esp + 0x8c]
and edx, 0xffff
push edx
mov edx, dword [esp + 0x78]
push edx
mov edx, dword [esp + 0x54]
lea eax, [eax + edx + 2]
push eax
push ecx
call fcn.00442410
mov cl, byte [esp + 0xa4]
add esp, 0x3c
mov byte [esi + 0xb8], cl
mov ecx, esi
call fcn.00423a30
mov ecx, dword [esp + 0x38]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret 0x2c