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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
push ebx
push esi
push edi
mov edi, ecx
mov ebx, dword [edi + 0x2c]
mov esi, dword [edi + 0x40]
mov eax, dword [edi + 0x24]
mov dword [esp + 0x4c], edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x24], eax
test ebx, ebx
je 0x438ccd
mov dword [esp + 0x10], ebx
jmp 0x438cd6
mov ecx, dword [edi + 0x28]
mov dword [esp + 0x10], ecx
mov ebx, ecx
cmp dword [edi + 0x50], 0
jne 0x438d38
lea edx, [esp + 0x3c]
push edx
push esi
call dword [sym.imp.USER32.dll_GetClientRect]
test ebx, ebx
je 0x4390f6
mov eax, dword [ebp + 8]
test eax, eax
jne 0x438d20
push esi
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
lea eax, [esp + 0x3c]
push eax
push edi
push 1
push ebx
call dword [sym.imp.ole32.dll_OleDraw]
push edi
push esi
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [esp + 0x3c]
push ecx
push eax
push 1
push ebx
call dword [sym.imp.ole32.dll_OleDraw]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea edx, [esp + 0x2c]
push edx
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
cmp dword [edi + 0x5c], 0
je 0x438d61
lea eax, [edi + 0x64]
push eax
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.USER32.dll_EqualRect]
test eax, eax
jne 0x438eac
mov eax, dword [edi + 0x5c]
test eax, eax
je 0x438d6f
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [edi + 0x60]
mov ebx, dword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
je 0x438d7f
push eax
call ebx
mov eax, dword [edi + 0x7c]
test eax, eax
je 0x438d8d
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [edi + 0x80]
test eax, eax
je 0x438d9a
push eax
call ebx
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov dword [edi + 0x64], edx
mov edx, dword [esp + 0x38]
mov dword [edi + 0x68], eax
mov dword [edi + 0x6c], ecx
push esi
mov dword [edi + 0x70], edx
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, eax
xor eax, eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov ecx, 0x20
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov word [esp + 0x5e], cx
mov ecx, dword [esp + 0x30]
sub ecx, dword [esp + 0x38]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x2c]
mov edx, 1
push esi
mov dword [esp + 0x54], 0x28
mov word [esp + 0x60], dx
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ecx
call ebx
push 0
push 0
lea edx, [edi + 0x74]
push edx
mov dword [edi + 0x5c], eax
push 0
lea eax, [esp + 0x60]
push eax
push esi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov ecx, dword [edi + 0x5c]
push eax
push ecx
mov dword [edi + 0x60], eax
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [edi + 0x54], 0
je 0x438e83
push esi
call ebx
push 0
push 0
lea edx, [edi + 0x84]
push edx
mov dword [edi + 0x7c], eax
push 0
lea eax, [esp + 0x60]
push eax
push esi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov ecx, dword [edi + 0x7c]
push eax
push ecx
mov dword [edi + 0x80], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x18]
push esi
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp dword [edi + 0x78], 0
jne 0x438ea4
mov eax, dword [edi + 0x5c]
push 0xc
push eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [edi + 0x78], eax
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
xor edx, edx
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], edx
mov edx, dword [esp + 0x34]
sub edx, eax
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x38]
sub eax, ecx
cmp dword [esp + 0x24], 0
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
je 0x4390ab
test ebx, ebx
je 0x4390ab
lea ecx, [esp + 0x3c]
push ecx
push esi
call dword [sym.imp.USER32.dll_GetClientRect]
cmp dword [edi + 0x78], 0x20
jne 0x439055
cmp dword [edi + 0x54], 0
jne 0x438f42
mov edx, dword [esp + 0x20]
imul edx, dword [esp + 0x1c]
mov eax, dword [edi + 0x74]
add edx, edx
add edx, edx
push edx
push 0
push eax
call fcn.0045db90
mov edx, dword [edi + 0x5c]
add esp, 0xc
lea ecx, [esp + 0x3c]
push ecx
push edx
push 0x20
push ebx
call dword [sym.imp.ole32.dll_OleDraw]
jmp 0x4390ab
mov eax, dword [esp + 0x20]
imul eax, dword [esp + 0x1c]
mov ecx, dword [edi + 0x74]
add eax, eax
add eax, eax
push eax
push 0
push ecx
call fcn.0045db90
mov edx, dword [esp + 0x2c]
imul edx, dword [esp + 0x28]
mov eax, dword [edi + 0x84]
add edx, edx
add edx, edx
push edx
push 0xff
push eax
call fcn.0045db90
mov edx, dword [edi + 0x5c]
mov esi, dword [sym.imp.ole32.dll_OleDraw]
add esp, 0x18
lea ecx, [esp + 0x3c]
push ecx
push edx
push 0x20
push ebx
call esi
mov ecx, dword [edi + 0x7c]
lea eax, [esp + 0x3c]
push eax
push ecx
push 0x20
push ebx
call esi
cmp dword [esp + 0x20], 0
mov ecx, dword [edi + 0x74]
mov esi, dword [edi + 0x84]
mov dword [esp + 0x10], 0
jle 0x4390a7
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x24], 0
test edx, edx
jle 0x439041
movzx edx, byte [ecx]
movzx eax, byte [ecx + 1]
mov byte [esp + 0x14], dl
mov byte [esp + 0x15], al
mov al, byte [esi]
sub al, byte [esp + 0x14]
inc ecx
movzx edx, byte [ecx + 1]
mov byte [esp + 0x16], dl
movzx edx, byte [esi + 1]
inc ecx
inc esi
mov byte [esp + 0x17], dl
mov dl, byte [esi + 1]
sub dl, byte [esp + 0x16]
inc esi
movzx edi, dl
mov dl, byte [esp + 0x17]
sub dl, byte [esp + 0x15]
movzx eax, al
movzx edx, dl
add edi, edx
add edi, eax
mov eax, 0x55555556
imul edi
mov eax, edx
shr eax, 0x1f
add eax, edx
or dl, 0xff
sub dl, al
mov eax, dword [esp + 0x24]
add ecx, 2
mov byte [ecx - 1], dl
mov edx, dword [esp + 0x1c]
inc eax
add esi, 2
cmp eax, edx
mov dword [esp + 0x24], eax
jl 0x438fcb
mov edi, dword [esp + 0x4c]
inc dword [esp + 0x10]
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x10], eax
jl 0x438fbf
jmp 0x4390a7
push esi
call dword [sym.imp.USER32.dll_GetParent]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_GetWindowDC]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
push 0xcc0020
push 0
push 0
mov ebx, eax
mov eax, dword [edi + 0x5c]
push ebx
push ecx
push edx
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
push ebx
push esi
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edx, dword [edi + 0x5c]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x3c]
push ecx
push edx
push 0x20
push eax
call dword [sym.imp.ole32.dll_OleDraw]
mov esi, dword [esp + 0x18]
xor ecx, ecx
cmp dword [edi + 0x78], 0x20
lea edx, [esp + 0x28]
setne cl
lea eax, [esp + 0x80]
mov byte [esp + 0x28], 0
mov byte [esp + 0x2b], 1
mov byte [esp + 0x29], 0
mov byte [esp + 0x2a], 0xff
lea ecx, [ecx + ecx + 2]
push ecx
mov ecx, dword [edi + 0x5c]
push edx
push 0
push eax
push ecx
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x90]
push eax
push 0
push esi
call dword [sym.imp.USER32.dll_UpdateLayeredWindow]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc