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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x508a78
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x54b708]
xor eax, esp
mov dword [esp + 0x8c], eax
push ebx
push edi
mov eax, dword [0x54b708]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
cmp dword [esi + 0x68], 0
je 0x47795e
lea ebx, [esi + 0xc]
push ebx
lea ecx, [esp + 0x40]
call fcn.004a68e5
lea eax, [esp + 0x10]
mov dword [esp + 0xa8], 0
mov ecx, dword [esi + 0x2c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
sub ecx, dword [esp + 0x10]
push 1
push eax
push ecx
call fcn.0045cc50
add esp, 8
push eax
call fcn.0045d280
add esp, 8
cmp byte [esi + 0xb4], 0
mov edi, eax
mov dword [esp + 0x38], edi
jne 0x4777aa
mov edx, dword [esi + 0xb0]
push edx
lea eax, [esp + 0x14]
push eax
lea ecx, [edi + 8]
call fcn.004a6c3f
jmp 0x4777bd
test edi, edi
je 0x4777b3
lea eax, [edi + 8]
jmp 0x4777b5
xor eax, eax
push eax
mov eax, esi
call fcn.0044a3d0
mov ebx, dword [esi + 0xd8]
xor edx, edx
cmp ebx, edx
mov dword [esp + 0xc], ebx
jne 0x4777d9
mov ecx, dword [esi + 0xd4]
mov dword [esp + 0xc], ecx
mov ebx, ecx
cmp byte [esi + 0x6c], 0
je 0x477902
cmp dword [esi + 0xe8], edx
je 0x477806
mov ecx, dword [esi + 0xe8]
mov edx, dword [ecx]
mov eax, dword [edx + 0x78]
call eax
xor edx, edx
test al, al
mov dword [esp + 0x24], 1
jne 0x47780a
mov dword [esp + 0x24], edx
mov eax, dword [esi + 0xc0]
cmp eax, 4
jne 0x477821
mov ecx, dword [esi + 0xc4]
mov dword [esp + 0x2c], ecx
jmp 0x477825
mov dword [esp + 0x2c], edx
cmp eax, 2
jne 0x477836
mov ecx, dword [esi + 0xc4]
mov dword [esp + 0x30], ecx
jmp 0x47783a
mov dword [esp + 0x30], edx
cmp eax, edx
jne 0x47784a
mov eax, dword [esi + 0xc4]
mov dword [esp + 0x20], eax
jmp 0x47784e
mov dword [esp + 0x20], edx
cmp edi, edx
je 0x47785b
add edi, 8
mov dword [esp + 0x28], edi
jmp 0x47785f
mov dword [esp + 0x28], edx
mov ecx, dword [esi + 0xe0]
mov edx, dword [ecx]
mov eax, dword [edx + 0x5c]
mov edi, dword [ebx]
call eax
mov ecx, dword [esi + 0xe0]
mov edx, dword [ecx]
mov ebx, eax
mov eax, dword [edx + 0x6c]
call eax
mov ecx, dword [esi + 0xe0]
mov edx, dword [ecx]
mov dword [esp + 0x34], eax
mov eax, dword [edx + 0x64]
call eax
movzx ecx, byte [esi + 0xf2]
movzx edx, byte [esi + 0xf1]
push ecx
movzx ecx, byte [esi + 0xf0]
push edx
movzx edx, byte [esi + 0xf4]
push ecx
mov ecx, dword [esp + 0x30]
cmp dword [esi + 0xb8], 0
push edx
mov edx, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x38]
push ecx
mov ecx, dword [ebx]
push edx
mov edx, dword [esp + 0x54]
push ecx
mov ecx, dword [edx]
mov edx, dword [eax]
push ecx
mov ecx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x44]
sete al
push eax
mov eax, dword [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x60]
push eax
mov eax, dword [edi + 0x2c]
push ecx
mov ecx, dword [esp + 0x4c]
push edx
call eax
mov edi, dword [esp + 0x38]
xor edx, edx
cmp edi, edx
je 0x477909
lea edx, [edi + 8]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
sub eax, dword [esp + 0x14]
sub ecx, dword [esp + 0x10]
test edx, edx
je 0x477920
mov edx, dword [edx + 4]
push 0xcc0020
push 0
push 0
push edx
push eax
push ecx
mov ecx, dword [esp + 0x58]
push 0
push 0
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
test edi, edi
je 0x47794a
mov edx, dword [edi + 4]
mov eax, dword [edx + 4]
lea ecx, [edi + 4]
call eax
lea ecx, [esp + 0x3c]
mov dword [esp + 0xa8], 0xffffffff
call fcn.004a6939
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x8c]
xor ecx, esp
call fcn.004b8e16
mov esp, ebp
pop ebp
ret