Function at 0x43c7d0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4fb5f8
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.0046b880
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 + 0xa4], ecx
lea ecx, [esi + 0x24]
lea ebx, [esi + 0x20]
mov dword [esi + 0xa0], edx
mov edx, dword [esp + 0x70]
push ecx
xor ebp, ebp
push ebx
push eax
mov dword [esp + 0x4c], ebp
mov dword [esi], 0x502c04
mov dword [esi + 8], str.ToggleControl_gump
mov dword [esi + 0x64], ebp
mov dword [esi + 0x58], eax
mov dword [esi + 0xa8], edx
mov dword [esi + 0xb0], ebp
mov dword [esi + 0xac], ebp
mov dword [esi + 0x68], ebp
mov dword [esi + 0xc0], ebp
mov dword [esi + 0xb8], ebp
mov dword [esi + 0x54], ebp
mov dword [esi + 0x50], ebp
mov dword [esi + 0x4c], ebp
mov dword [esi + 0x48], ebp
mov dword [esi + 0x44], ebp
call fcn.004a9760
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.004a7e80
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 0x43c8c0
dec ecx
or ecx, 0xfffffffe
inc ecx
cmp ecx, 1
jne 0x43c8c8
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.004b9f50
mov ecx, dword [esi + 0x18]
mov edi, eax
shl ecx, 3
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [esi + 0x40], 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.004b9f50
mov edx, dword [esi + 0x40]
mov dword [edx + 4], eax
mov ecx, dword [ebx]
imul ecx, dword [esi + 0x24]
mov edx, dword [esi + 0x40]
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 + 0x40]
mov dx, word [ebx]
mov ecx, dword [eax + 4]
mov word [ecx], dx
mov eax, dword [esi + 0x40]
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 + 0x58]
lea ecx, [esp + 0x24]
push ecx
push edx
call fcn.004a9760
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 + 0x40]
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.004a7380
mov cl, byte [esp + 0xa4]
add esp, 0x3c
mov byte [esi + 0xbc], cl
mov ecx, esi
call fcn.0043cab0
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