Function at 0x77a184
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0x50
mov esi, ecx
mov eax, dword [0x84ef20]
test eax, eax
je 0x77a1a0
add esp, 0x50
pop ebx
pop ebp
pop esi
pop edi
ret 0x18
mov ebp, dword [esi + 4]
mov al, byte [ebp + 0xc]
test al, al
je 0x77a1b3
push 1
mov ecx, esi
call fcn.007794c4
mov eax, dword [esp + 0x64]
mov eax, dword [eax]
test al, 0x20
je 0x77a1df
mov eax, dword [esp + 0x64]
mov eax, dword [eax + 0x20]
test eax, eax
je 0x77a447
movzx eax, al
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x64]
mov eax, dword [eax]
test al, 0x40
jne 0x77a1e7
xor ecx, ecx
jmp 0x77a1ee
mov eax, dword [esp + 0x64]
mov ecx, dword [eax + 0x24]
mov edx, dword [esp + 0x78]
mov ebp, dword [esi + 4]
mov dword [ebp + 8], ecx
xor ebp, ebp
test edx, edx
je 0x77a433
mov ebp, dword [esp + 0x78]
mov edi, dword [esp + 0x64]
mov ebx, DirectSoundEnumerateA
mov dword [esp], ebx
mov dword [esp + 4], ebx
mov edx, DirectSoundEnumerateA
mov dword [esp + 0x4c], edx
mov edx, dword [edi]
mov ebx, DirectSoundEnumerateA
test dl, 1
je 0x77a2c1
mov edi, dword [esp + 0x64]
mov ebx, dword [edi + 0x10]
sub ebx, dword [edi + 8]
mov dword [esp + 0x4c], ebx
mov ebx, dword [edi + 0x14]
sub ebx, dword [edi + 0xc]
test dl, 4
je 0x77a2c1
mov edi, dword [esp + 0x4c]
mov edx, 0x32
mov dword [esp + 0xc], edx
mov dword [esp + 8], edx
add edi, 0x32
mov dword [esp + 0x10], edi
add ebx, 0x32
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x70]
test bl, 0x40
je 0x77a286
lea ebx, [esp + 8]
xor edx, edx
push edx
push edx
push 0xcf0000
push ebx
call dword [sym.imp.USER32.dll_AdjustWindowRectEx]
jmp 0x77a2a7
mov ebx, dword [esp + 0x78]
lea edi, [esp + 8]
xor edx, edx
test ebx, ebx
setne dl
mov ebx, dword [esp + 0x70]
push ebx
push edx
mov edx, dword [esp + 0x74]
push edx
push edi
call dword [sym.imp.USER32.dll_AdjustWindowRectEx]
mov ebx, dword [esp + 0x10]
sub ebx, dword [esp + 8]
mov edx, dword [esp + 0x64]
mov edx, dword [edx]
mov dword [esp + 0x4c], ebx
mov ebx, dword [esp + 0x14]
sub ebx, dword [esp + 0xc]
test dl, 2
je 0x77a3bd
mov edi, dword [esp + 0x64]
mov eax, dword [edi + 8]
mov edi, dword [edi + 0xc]
mov dword [esp], eax
test dl, 8
mov dword [esp + 4], edi
je 0x77a326
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edi
lea ecx, [esp + 0x18]
add eax, 0x32
mov dword [esp + 0x20], eax
add edi, 0x32
xor edx, edx
mov dword [esp + 0x24], edi
mov edi, dword [esp + 0x78]
test edi, edi
setne dl
mov edi, dword [esp + 0x70]
push edi
push edx
mov edx, dword [esp + 0x74]
push edx
push ecx
call dword [sym.imp.USER32.dll_AdjustWindowRectEx]
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov dword [esp], edx
mov dword [esp + 4], edi
mov edx, dword [esp + 0x6c]
test edx, 0x40000000
je 0x77a33d
mov edx, dword [esp + 0x64]
mov edx, dword [edx]
jmp 0x77a3bd
lea edx, [esp + 0x28]
push edx
call fcn.00774740
pop ecx
mov edx, dword [esp + 0x30]
cmp edx, dword [esp]
mov dword [esp + 0x38], edx
jge 0x77a35b
lea edx, [esp + 0x38]
jmp 0x77a35e
lea edx, [esp]
mov ecx, dword [edx]
mov edx, dword [esp + 0x34]
cmp edx, dword [esp + 4]
mov dword [esp], ecx
mov dword [esp + 0x3c], edx
jge 0x77a377
lea edx, [esp + 0x3c]
jmp 0x77a37b
lea edx, [esp + 4]
mov edi, dword [esp + 0x28]
mov edx, dword [edx]
mov dword [esp + 4], edx
cmp ecx, edi
mov dword [esp + 0x40], edi
jge 0x77a393
lea edi, [esp + 0x40]
jmp 0x77a396
lea edi, [esp]
mov edi, dword [edi]
mov dword [esp], edi
mov edi, dword [esp + 0x2c]
cmp edx, edi
mov dword [esp + 0x44], edi
jge 0x77a3ad
lea edx, [esp + 0x44]
jmp 0x77a3b1
lea edx, [esp + 4]
mov edi, dword [esp + 0x64]
mov edx, dword [edx]
mov dword [esp + 4], edx
mov edx, dword [edi]
mov edi, 0x866c6c
test dl, 0x10
je 0x77a3ce
mov edx, dword [esp + 0x64]
mov edi, dword [edx + 0x18]
mov edx, dword [esp + 0x68]
push edx
call fcn.0077b970
mov dword [esp + 0x4c], eax
mov edx, dword [esp + 0x6c]
push edx
call fcn.0077b9b0
add esp, 8
mov dword [0x84ef20], esi
mov dword [esi + 0x24], eax
call fcn.00771df4
xor edx, edx
push edx
push dword [eax + 0x10]
push edx
push ebp
push ebx
mov eax, dword [esp + 0x60]
push eax
push dword [esp + 0x1c]
push dword [esp + 0x1c]
mov ecx, dword [esp + 0x8c]
push ecx
push edi
mov ebx, dword [esp + 0x70]
push ebx
mov ebp, dword [esp + 0x9c]
push ebp
call dword [sym.imp.USER32.dll_CreateWindowExA]
add esp, 0x50
pop ebx
pop ebp
pop esi
pop edi
ret 0x18
test ecx, ecx
je 0x77a206
call fcn.00774670
mov ebp, eax
jmp 0x77a206
push 5
call dword [sym.imp.USER32.dll_GetSysColor]
jmp 0x77a1cf